A demonstration of my implementation that makes Unity built with WebGL work perfectly with WebSocket. Originally Websocket implementations (WebSocketSharp) don't work directly in WebGL build, so I made a communication "bridge" between Unity and javascript that works with websocket.
Interaction with browser scripting:
https://docs.unity3d.com/Manual/webgl...