kongzue / kongzue/BaseOkHttpV3
websocket问题
- Dominant language
- Java
- Stars
- 227
- Forks
- 37
- PR merge metrics
- No merged PRs in 30d
Description
你好,我这边没有做过websocket开发,看了下你的代码,问题1.服务器向客户端发消息 @Override
public void onMessage(String message) {
//处理收到的消息 message
resultWebsocket.setText("收到返回消息:" + message);
}
是调用这个方法收到消息对吧
问题2:那么客户端怎么向服务器发送消息呢?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the issue's cited onMessage callback and the repository's WebSocket usage to determine how client-to-server messages are sent. Done means documenting the client send operation clearly, alongside the existing explanation of receiving server messages.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- networking
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100