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

怎么请求参数里面怎么不带sid #32

Closed
q98765543221 opened this issue Dec 3, 2018 · 2 comments
Closed

怎么请求参数里面怎么不带sid #32

q98765543221 opened this issue Dec 3, 2018 · 2 comments

Comments

@q98765543221
Copy link

image

web端用的socket.io-client是带sid与后台连接的,小程序里面用的这个不带sid,好像连不上服务端

@hexiaoyanh
Copy link

同样的问题

@gongzili456
Copy link
Member

sid 不是在客户端发起请求的时候产生的,而是 Server 端在握手之后返回的,下图是 socket.io 官网的连接示例:
image

image

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

3 participants