nuysoft / Mock

A simulation data generator
http://mockjs.com
Other
19.52k stars 2.66k forks source link

项目使用了socket.io,socket被影响不能建立连接 #224

Open gebin opened 7 years ago

gebin commented 7 years ago

set-cookie的值io=xxxxxx一直在发生变化,然后一直请求ajax: http://localhost:2120/socket.io/?EIO=3&transport=polling&t=1504683797964-0 http://localhost:2120/socket.io/?EIO=3&transport=polling&t=1504683797964-1 http://localhost:2120/socket.io/?EIO=3&transport=polling&t=1504683797964-2

wcldyx commented 7 years ago

+1

wcldyx commented 7 years ago

me too

gongph commented 5 years ago

@nuysoft 你好,关于 Mock.js 和 socketio 冲突的问题,有相关解决办法吗? @gebin 你解决了吗?

benmo1602 commented 5 years ago

+1

benmo1602 commented 5 years ago

关闭 mock 就好了,socket.io 会降级 连接被mock 拦截

yangbojava commented 5 years ago

@nuysoft 这个问题能解决吗

yangbojava commented 5 years ago

研究了几天,都没能解决。

hhm1999 commented 5 years ago

socket.io的transports设置为['websocket']