Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有没有android版本的demo #10

Open
huangwenfeixxx opened this issue Aug 1, 2019 · 5 comments
Open

有没有android版本的demo #10

huangwenfeixxx opened this issue Aug 1, 2019 · 5 comments

Comments

@huangwenfeixxx
Copy link

我导入了 api 'com.github.typ0520:bizsocket-rx2:2.0.0',然后按照BizSocket的配置运行,使用网络调试助手作为服务器端,调用 client.connect();没有发现有连接对象。sample的页面已经没有了

@huangwenfeixxx
Copy link
Author

大佬看到回下,谢谢

@typ0520
Copy link
Owner

typ0520 commented Aug 1, 2019

connect不是阻塞的,你看下日志的信息,另外确认下包解析器有配置吗,android上跑也是一样的,

@huangwenfeixxx
Copy link
Author

huangwenfeixxx commented Aug 2, 2019

连接成功了,就是发送消息传的值和接收的消息是空的。因为现在我用的PC调试工具,没有协议,包的解析器是复制您的
2019-08-02 14:48:01.195 16525-16525/com.android.mybizandroidsocket D/--->: content:[text={"productId" : "1","isJuan" : "0","type" : "2","sl" : "1"}]
2019-08-02 14:48:01.196 16525-16525/com.android.mybizandroidsocket D/--->: 发现一个请求postRequestHandle: RequestContext{request=Request{command=1, body=[text={"productId" : "1","isJuan" : "0","type" : "2","sl" : "1"}], description='null'}, responseHandler=com.android.mybizandroidsocket.socket.GeekSocket$4@d9915c}
2019-08-02 14:48:01.197 16525-16555/com.android.mybizandroidsocket I/System.out: Packet: -------------------send packet: 1 ,desc: null, id: 0
2019-08-02 14:48:01.197 16525-16555/com.android.mybizandroidsocket I/System.out: Packet: -------------------send content: null
D/--->: 收到一个包postResponseHandle: Packet{command=0, description='null', contentnull}
谢谢大佬

@typ0520
Copy link
Owner

typ0520 commented Aug 2, 2019 via email

@typ0520
Copy link
Owner

typ0520 commented Aug 4, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants