What is the WebSocket error on status 200?

前端 未结 2 1447
时光说笑
时光说笑 2021-01-12 13:44

I have bought a WebSocket module and installed it on my WAMP environment. I also have a PHP script which generates the IPC file at the correct location and loops forever to

相关标签:
2条回答
  • 2021-01-12 14:09

    On a WebSocket connection you want a 101 Switching Protocols status response.
    Getting a 200 status response, probably means that the request didn't reach your WebSocket Handler.

    I would also look into the dev-tools, and check if the response has any WebSocket handshake headers.
    If it has, I would assume it's a problem with the module. Otherwise it's probably your configuration.

    0 讨论(0)
  • 2021-01-12 14:12

    Such a response means the remote ressource located at the URL doesn't listen or at least can't respond to a websocket request. Check the remote service you try to reach. And if you have coded the server, post your source

    0 讨论(0)
提交回复
热议问题