websocket icon indicating copy to clipboard operation
websocket copied to clipboard

Update the chat example to publish messages on the websocket connection

Open stefan-toubia opened this issue 2 years ago • 3 comments

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.

stefan-toubia avatar Nov 09 '22 21:11 stefan-toubia

@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 avatar Oct 25 '23 13:10 KunalSin9h

@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.

nhooyr avatar Oct 25 '23 15:10 nhooyr

great

KunalSin9h avatar Oct 25 '23 15:10 KunalSin9h