Replies: 1 comment
-
You can simply use the server returned by const app = express()
app.use("/greeterAPI", restfuncs( new GreeterService() ))
const httpServer = app.listen(3000)
const io = new Server(httpServer);
// ... |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
So, why not offer an express router as part of the API, i.e:
Technically the handler would be able to stream express's http request and response. Is there another reason that makes it impossible ?
Background: I'm trying to use engine.io as a sub handler in the restfuncs library which is an RPC on top of http (or websockets)
Beta Was this translation helpful? Give feedback.
All reactions