Websocket disconnection

We created the WebSocket client by referring to the Webos document. Although We do package>install>launch, it says disconnection. When I opened it in chrome, it works well. Can you tell me the way?

This is websocket.js capture(the client).
websocket.js(2)


and this is server code

As I can see from your screenshot, there is an error occurred and WebSocket is disconnected.

Please share that error message too.

You can refer : WebSocket Communication on webOS | webOS Open Source Edition

Also please mention where you testing your app (emulator / RPI4 )