wxapp-socket-io icon indicating copy to clipboard operation
wxapp-socket-io copied to clipboard

此项目已经迁移至:

Results 20 wxapp-socket-io issues
Sort by recently updated
recently updated
newest added

当我后端发送类型为对象的值时,内部的`decodePacket`函数中的 data.charAt(0)为报错 , 由于源代码逻辑对我来说比较复杂,希望作者可以修复一下。感谢。

``` socket.on('disconnect', function () { console.log('disconnect') socket.io.reconnect(); }); ``` 只会尝试重连一次,不会循环尝试。

我找的 server 好像都不好用啊 用的socket.io 0.9.x的 一直报 info - unhandled socket.io url 求大神上传一个 配套的 server

像manager.js里面的'component-emitter' | 'component-bind' | 'backo2' | 'indexof' 这些import都是从哪里引用的啊?

Close socket when engine destroy.

Maybe the url should be changed to an invite link?

``` WAService.js:1 thirdScriptError this.engine.close is not a function;at onSocketMessage callback function TypeError: this.engine.close is not a function at Manager.close.Manager.disconnect (http://1603736195.appservice.open.weixin.qq.com/vendor/socket.io/index.js:394:38) at Manager.destroy (http://1603736195.appservice.open.weixin.qq.com/vendor/socket.io/index.js:382:14) at Socket.destroy (http://1603736195.appservice.open.weixin.qq.com/vendor/socket.io/index.js:1907:17) at Socket.close.Socket.disconnect (http://1603736195.appservice.open.weixin.qq.com/vendor/socket.io/index.js:1892:14) at...

我的demo每51秒就会重连一次,改了pingInterval 和pingTimeout 之后。只是间隔时间不一样了。但是还是会重连

非常急, 我是js新手 ,还请大神有时间了 速度更新

小程序里面这样写是可以的, ``` wx.connectSocket({ url: 'wss://xxxx.com/user/??EIO=3&transport=websocket', }) ``` 在socket.io的客户端是这样写的 ``` io.connect('//xxxx.com',{path:'/user'}); ``` 在你这里应该咋写,写成`?path=user`也不管用啊,貌似加了个默认通道`socket.io`, 控制台报错,连接地址为 ``` wss://xxx.com/socket.io/?path=/user/&EIO=3&transport=websocket' ``` 这个了,