Express compatibility layer #565
endel
started this conversation in
Show and tell
Replies: 1 comment 3 replies
-
Lots of people try to make Express layer for this library, fine to try but my opinion is no point adding large complex layer that is not necessary and gives false impression that it is compatible with Express when is not, best to just do standard practice ways of doing simple things and use 50x less code that is readable with zero bugs etc, Your source is 440 lines of code which all need to be read through and overcomplicate, not to mention the performance hit whatever is happening every request, and you are doing strange things like what is this https://github.com/endel/uWebSockets-express/blob/master/src/Request.ts#L73 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone 👋
I've dedicated this week fully to develop an Express compatibility layer on top of uWebSockets.js, and made it available here: https://github.com/endel/uWebSockets-express
With this compatibility layer, you can use the familiar Express API's while leveraging uWebSockets.js under the hood.
Example:
I've made some initial tests and some existing express middlewares are already working with this compatibility layer, such as express-session, serve-index, and serve-static.
If you can try it out, provide feedback, and/or report bugs regarding the usage on well-known middlewares it would be really helpful to improve and continue the development of this compatibility layer!
(This compatibility layer is going to be available as part of the upcoming uWebSockets.js support on Colyseus 🎉 )
Cheers, hope you enjoy!
Beta Was this translation helpful? Give feedback.
All reactions