A simple WebSocket application using Serverless Framework with support for $connect
, $disconnect
, and a custom sendMessage
route.
yarn install
yarn start:dev
- WebSocket URL:
ws://localhost:3001
Open public/index.html
in your browser to test:
- Connect / Disconnect
- Send a message
- See response echoed back from the backend