I'm setting up a server on Plesk with a React.js and Node.js application, containing a client and server side.
Below the socket in my client config file:
export const socket = io('wss://domain.name:3000', {reconnect: true, transports: [ 'websocket' ] });
And this is the setup on the server...