Default of nestjs for websocket connection is Socket.io, so if you want to connect your websocket server, your client must use Socket.io to connect it and if you want to connect with normal websocket you will get this error:
Error: socket hang up