We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'd like to use this with an existing Express application that is already listening on a port.
Is it possible to do that, i.e. plug this in to a specific route on an existing web server, instead of listening on its own port?
The text was updated successfully, but these errors were encountered:
Yes, see the bottom of the "involved example" on the readme
var app = express(); app.use('/', express.static('assets')); var httpServer = http.createServer(app); options.httpServer = httpServer; options.httpPath = '/rethinkApi'; RethinkdbWebsocketServer.listen(options); httpServer.listen(8000);
As long as you run RethinkdbWebsocketServer.listen with the httpServer set to the server from your existing express application, it should work.
RethinkdbWebsocketServer.listen
httpServer
Sorry, something went wrong.
No branches or pull requests
I'd like to use this with an existing Express application that is already listening on a port.
Is it possible to do that, i.e. plug this in to a specific route on an existing web server, instead of listening on its own port?
The text was updated successfully, but these errors were encountered: