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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
const express = require(`express`) const server = express() require(`express-ws`)(server) server.ws(`/xxx`, (ws, req) => { console.log(`socket`, req.testing) ws.on(`message`, function(msg) { console.log(msg) }) }) server.listen(3040)
Should not connect to non-existing ws API
new WebSocket(`ws://127.0.0.1:3040/1/2/3`)
The text was updated successfully, but these errors were encountered:
solution: https://github.com/wll8/express-ws
Sorry, something went wrong.
No branches or pull requests
code
test
Should not connect to non-existing ws API
The text was updated successfully, but these errors were encountered: