Websocket implementation
Hey there, I’ve tried implementing Websockets into my project a few times, but I haven’t had any luck. Could someone please advise me on how to do it?
https://gist.github.com/romanindermuehle/2b87cc36fd35a5e2827f7402a9c69dd7
4 Replies
What is the problem you are facing?
In the chatroom.route.ts. I can’t upgrade to WebSocket.
It uses Hono, so I'd say it's most likely a bug in Hono's
deno
layer that prevent from doing the upgradeSo do you think my method for the WebSocket handler is correct? Because I never have done WebSocket before. And I’m also not sure if I use it correctly in the route. Because it shows an error but I can’t do much with it.