Closed christophsaile closed 4 years ago
Hi Christoph, it's poorly not possible to create a websocket connection because the webserver needs to open up a http socket and hold it until one of the participants close it. If you send a request to the plugin, the request will be send to the JavaScript runtime, after the request has been sent, the socket is already closed and therefore it's not possible to establish a websocket connection. sorry for that.
Ahh ok makes sense. Thanks for your fast response.
Hello,
I am currently struggeling to use this plugin to establish a websocket connection. My goal is to send a ws request to the local server and create a connection. If I use the response header from your example I get the following error:
I have already tried to change the status of the response header to "101 Switching Protocols" but that did not work for me.
Do you have any idea if its possible to create a websocket connection between two devices with your plugin?
thanks in advance, Christoph