websocket
websocket copied to clipboard
Update the chat example to publish messages on the websocket connection
I think the chat example would be a lot more valuable if the messages were published via the websocket connection instead of as separate HTTP request. I'm trying to migrate from gorilla/websockets but having a hard time figuring out how to both read from and write to a client from different threads. If not publishing the messages themselves, maybe a "typing" indicator when a user is typing in the input? Anything that demonstrates concurrent full duplex communication over websockets really.
@nhooyr i am experimenting with this lib, i would like to work on this, can you point me to resource which Stefan is talking about - which example?
@KunalSin9h Appreciate the initiative but this isn't an issue I'm looking to have help on. I need to write and update the chat example myself. There will be too much back and forth with someone else. This is also something that needs to wait for #209 and #267.
The only issue I'm looking for help with is https://github.com/nhooyr/websocket/issues/16 currently.
great