Simple websocket application based on Specification
Because Nestjs use Socket.io by default, websocket request need to follow socket.io format
{
"event": "event_name",
"data": "message"
}
in the gateway, the method that intended to interact with the websocket in the gateway need to subscribe event_name
@SubscribeMessage('event_name')