ZombieB
ZombieB2w ago

Express and WebSocket server on one port

Hi, I'm using Expressjs in my application. I need to handle websockets and the Express routes on one port. I know this can easily be done with Node, but how can I do it on Deno? I can't switch away from Express, but I can start from scratch with any websocket library. I'm using app.listen(port) in my code.
1 Reply
ZombieB
ZombieBOP2w ago
Nevermind, had some problems with the ws npm package. Wanted to use a Deno alternative, but I couldn't find any compatible ones. Fixed them now.

Did you find this page helpful?