PaperKrane
Is there a way to subscribe/publish with Hono webSocket middleware (for Bun)?
I am definitely far from familiarity with websockets but I am excited to try it out with Hono. I am just testing it out trying to build a basic chat application with rooms based on a URL but for some reason I can only get the websockets to publish to an individual session and not for multiple users on different browsers. I see there is a ‘raw’ object on the websocket object that has subscribe and publish but the publish doesn’t seem to broadcast the message. I am totally open to additional docs or insights with this one. I am loving Hono and I am really excited to exploring more!
1 replies
Deploy Hono / Bun API
I know, I know this is such a newby question but I come from small express apps and other simple ‘click to deploy’ frameworks. I recently discovered Hono and more recently tried to build the app out on Bun because the built in web sockets are amazing. I am just at a loss how to deploy the small API I built. Any insights / examples of how one might deploy a simple API with Hono/Bun would be amazing. I feel like Docker is my best bet but am still not a master with it.
Should add, I would appreciate any docs or articles that might help as well. Just excited to push this thing and test it out on a production server.
Thanks to all who take the time to read! Best wishes!
14 replies