Skip to content
This repository has been archived by the owner on Mar 21, 2020. It is now read-only.

连接地址拼接失败 #28

Open
BoleLee opened this issue Apr 2, 2018 · 0 comments
Open

连接地址拼接失败 #28

BoleLee opened this issue Apr 2, 2018 · 0 comments

Comments

@BoleLee
Copy link

BoleLee commented Apr 2, 2018

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"});

求教

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

No branches or pull requests

1 participant