I have a web socket server running on an Ubuntu 12.04 EC2 Instance. My web socket server is written in Python, I am using Autobahn WebSockets.
The JS client can connect to the web socket and the server receives and processes the webcam frames. However, after 5 or 6 minutes the client stops sending the frames and displaying the following message:
WebSocket connection to ‘ws://x.x.x.x:9000/’ failed: Failed to send WebSocket frame.
When I print the error data I got “undefined”.
I am not sure what is the source of the problem. It is not a timeout problem.
Of course, this never happens when I run the server on my local testing environment.