i can't edit the main thread.
websocket already running and works fine in server, so it's sure about nginx configuration to process the requests to websocket.
i have plesk server with apache2 and nginx and i have a websocket app it works on port 2589 and i used ratchet and autobahn to work with websocket, nginx version nginx version: nginx/1.20.2 and ufw status Status: inactive and my nginx directive config for websocket
location ^~ /WsConn
{...