bizsocket icon indicating copy to clipboard operation
bizsocket copied to clipboard

有没有android版本的demo

Open huangwenfeixxx opened this issue 6 years ago • 5 comments

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

huangwenfeixxx avatar Aug 01 '19 08:08 huangwenfeixxx

大佬看到回下,谢谢

huangwenfeixxx avatar Aug 01 '19 08:08 huangwenfeixxx

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

typ0520 avatar Aug 01 '19 10:08 typ0520

连接成功了,就是发送消息传的值和接收的消息是空的。因为现在我用的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} 谢谢大佬

huangwenfeixxx avatar Aug 02 '19 06:08 huangwenfeixxx

没有协议调试没意义吧

typ0520 avatar Aug 02 '19 10:08 typ0520

SampleServer你用这个调试发自我的华为手机-------- 原始邮件 --------主题:Re: [typ0520/bizsocket] 有没有android版本的demo (#10)发件人:huangwenfeixxx 收件人:typ0520/bizsocket 抄送:tong ,Comment 连接成功了,就是发送消息传的值是空的,然后不能收消息。因为现在我用的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

谢谢大佬

—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.

typ0520 avatar Aug 04 '19 01:08 typ0520