phoboslab / jsmpeg

MPEG1 Video Decoder in JavaScript
MIT License
6.35k stars 1.43k forks source link

Error during WebSocket handshake: Unexpected response code: 400 #346

Open SeanSure opened 4 years ago

H-xie commented 3 years ago

@ #293 In my case. The mentioned error is caused by the way jsmpeg create websocket. It create with an subprotocol called 'null', which means server should accept the connection request properly.

In Django, this means

this.accept('null')

Hoping this will be fixed soon.