egg-websocket-plugin
egg-websocket-plugin copied to clipboard
A standard WebSocket plugin for egg.js
正式环境下没办法连接websocket啊.
是不是没有办法去主动的踢掉当前已经存在连接的客户
升级反馈
作者您好,现在,我一直使用您这个插件,方法也写差不多了,上次我给你反馈安装出现错误后,你对插件进行了升级。但是,我并没有忙于升级,而是用你未升级的版本测试一下,能不能用,经过我的测试,发现是可以用的,我也写了很多方法,socket连接,接收消息,都是没有问题的, 但是,今天,我需要安装一个二维码的库,我安装的时候出现错误提示,提示不能安装,但我看到反馈的错误信息,竟然是和你的这个插件有关,反馈如下: `npm install qr-image npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/egg npm...
您好,我一直使用你这个插件,但eggs升级,安装的时候出现错误,请问可以解决吗?: # npm resolution error report While resolving: [email protected] Found: [email protected] node_modules/egg egg@"^3" from the root project Could not resolve dependency: peer egg@"^2.26.0" from [email protected] node_modules/egg-websocket-plugin egg-websocket-plugin@"*" from the root...
// 更新路由 router.post('/data_overview/update', controller.dataOverview.update) // ``` async update() { ... this.ctx.websocket.send("这样会报错 websocket 对象没有"); } ```
好像[tegg](https://github.com/eggjs/tegg)的项目因为改动比较大,使用这个plugin的时候会报错: nodejs.AssertionError: background task helper must be init in context