Skip to content

How to properly integrate socketio into HyperExpress #254

Closed Answered by kartikk221
Mint-Joy asked this question in Q&A
Discussion options

You must be logged in to vote

So it all comes down to which methods / properties / behaviors socket.io expects from the Request / Response object.
We try to get as close as possible but hyper-express does not have 100% compatibility and who knows which undocumented getters / methods socket.io may be calling internally from Express.js

The best approach would be to drop-in hyper-express in the place of express when creating your socket.io instance then running through all possible test cases / calls to see If something breaks or uncaught errors occur.

From this point onwards, you can clone hyper-express and then add the neccessary properties / methods for compatibility and do this until socket.io works properly.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Mint-Joy
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by kartikk221
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants