-
-
Notifications
You must be signed in to change notification settings - Fork 173
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
服务端socket.io @4 能用这个包吗? #105
Comments
把代码下载下来,重新安装依赖包,我试过 用socket.io-client 4.1.3 包, 可以打包,可以使用。服务器端V4, 要求客户端版本最低是4.1.3. |
用socket.io-client 4.6.1打包,在微信小程序中使用,出现eval之类的错误。查看了socket.io-client源代码,没有发现有用eval之类的代码,可能没有找得更细。 |
高于 |
@kingchen2008 老哥能不能贴一个可用版本的上来 |
我记得打包的 prod 也行啊 |
用你这个还是报一样的错,不过我找到了个方法,虽然大小会占用113KB。 https://github.com/rayyzhong/weapp.socket.io#using-with-socketio-v4-eg-v461 |
不会吧 我项目中用这个是正常的 没遇到这个错误 |
运行package.json文件里面的命令: |
遇到了什么问题?
你的预期是什么?
截图:
项目版本号:�
微信开发者工具
真机环境 (请完成填充下面的条码):
附加信息:
The text was updated successfully, but these errors were encountered: