Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 285 Bytes

README.md

File metadata and controls

14 lines (11 loc) · 285 Bytes

websocket bridge

curl --request POST \
  --url https://ws.ejwan.dev/channel-123 \
  --header 'Content-Type: application/json' \
  --data '{"message": "some message"}'
const ws = new WebSocket('wss://ws.ejwan.dev/ws/channel-123'); 
ws.onmessage = console.log;