[WebSocket] How can I send message from server side without receiving message from client #3774
Unanswered
Gumichocopengin8
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm new to Hono!
This example looks like an echo server, but what I wanna do is to send messages from server side as soon as websocket is connected to the client. Is it possible to do so with
import { upgradeWebSocket } from 'hono/cloudflare-workers';
?Do I need to do like this instead of using
upgradeWebSocket
?I considered using SSE too, but I wanna send binary data instead of text (SSE doesn't support binary data).
Beta Was this translation helpful? Give feedback.
All reactions