A simple WebSocket PubSub server built with TypeScript. WS connections can publish
, subscribe
, or unsubscribe
to different topics.
{
msgType: publish | subscribe | unsubscribe;
msg: string;
topic: string;
}
{
"msgType": "publish",
"msg": "hey there",
"topic": "topic_001"
}
{
"msgType": "subscribe",
"topic": "topic_001"
}
{
"msgType": "unsubscribe",
"topic": "topic_001"
}