weapp-socketio / wxapp-socket-io

此项目已经迁移至:
https://github.com/wxsocketio/weapp.socket.io
306 stars 74 forks source link

连接地址拼接失败 #28

Open BoleLee opened 6 years ago

BoleLee commented 6 years ago
import io from 'wxapp-socket-io'
var socket = io('https://xxx.xxx.net/socket/socket.io') 

生成出来的地址不对,不写端口好像不行,而且端口后面的路径无法自己控制,怎么写都是生成:https://xxx.xxx.net:xxx/socket.io/?EIO=3&transport=websocket

web连接的demo是可以正常连接的:

var socket = io.connect('https://xxx.xxx.net', {path: "/socket/socket.io"});

求教