Websocket - InvalidStateError: The connection has not been established yet

早过忘川 提交于 2019-12-01 21:51:18

I found a solution to this problem some time ago, I'll post it here also.

The issue is that: npm install sockjs-client downloads sockjs-node instead of client. I hope they will fix it soon.

If you're facing the same issue you should download this file http://cdn.jsdelivr.net/sockjs/1/sockjs.min.js put it in your project and point to it in system-config.ts.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!