SignalR WebRTC WebSocket is already in CLOSING or CLOSED state

谁说胖子不能爱 提交于 2019-12-05 02:48:20
Adamus

The message size seems to be the key problem here.

In your project, every frame of video is about 40k but every frame of cam is more than 140K. Actually, in index.html when you broadcast the video, after about 20s, there will be several frames larger than 70k which will also give you the same error.

I tried sending some long string messages as a test, and I do get errors when the message is longer than a certain value. However, I was not able to find in the documentation a definite limitation of message length or message density.

I had similliar problem running websocket app server on Glassfish 4 with port 8080, After I changed my port to another it works (eg: 8887), probably this is a temporary solution before finding the permanent solution for port 8080.

Edit: Found the root cause, my antivirus was using port 80 which is used by websocket. If You find the similiar problem check your antivirus/other aplication port.

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