Effect CommunityEC
Effect Community3y ago
14 replies
johannes

WebSocket Server Wrapper with Queues

I am trying to adapt the excellent WebSocket implementation that @Tim Smart created in the Discord Bot repo here https://github.com/tim-smart/dfx/blob/main/src/DiscordGateway/WS.ts. For my use case I want to create a WebSocket Server that can listen on messages, send to a specific connection and broadcast messages.

There are quite some new concepts in the WebSocket implementation for me like queues and custom runtimes. Here is my first shot at the implementation:
Was this page helpful?