-
Does Hono support WebSockt in deno? |
Beta Was this translation helpful? Give feedback.
Answered by
yusukebe
Dec 29, 2022
Replies: 1 comment 2 replies
-
Yes, you can write like this: app.get('/ws/', (c) => {
const { response, socket } = Deno.upgradeWebSocket(c.req)
socket.addEventListener('message', (e) => console.log(e))
return response
}) This is a good article: |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
yusukebe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, you can write like this:
This is a good article: