Skip to content

Latest commit

 

History

History

e0-websocket-gateway

Create a WebSocket Gateway Server

Doc: Gateways | NestJS

*
↓
$ npm run start:dev
$ npm i --save @nestjs/websockets @nestjs/platform-socket.io
$ nest new websocket-gateway

Story Mode

↑ [recv]: listen on 'Major Tom' in [Events]
↑ 
↑ [send]: send to 'Ground Control' (pattern to be fulfilled)
↑ [send]: fill in [Message] 
↑ 
↑ Connect ➜ http://localhost:10086
↑ Postman ➜ New ➜ Socket.IO request
↑
*** Test: sending request on Postman ***
  • Postman: ✅
  • Insomnia: No Socket IO support