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
Create a WebSocket wrapper for tinyhttp, similar to express-ws and express-ws-routes
Usage will be something like this:
import { App } from 'tinyws' const app = new App() app.ws('/abc', (ws, req) => { ws.on('message', msg => { ws.send(msg) }) })
If you have a better idea of how the usage should like, share in the thread
App must extend Router from '@tinyhttp/router'
App
Router
If possible, it shouldn't depend on extra modules. But if not, then ws can be used.
ws
The text was updated successfully, but these errors were encountered:
Another suggestion is to build a standalone WebSocket framework based on tinyhttp
I already have a name... "tinyws" lol
@tinyhttp/router doesn't use an http server so it's possible to build such framework
@tinyhttp/router
Sorry, something went wrong.
not going to work on it but if anyone wants i can help with the @tinyhttp/router package
No branches or pull requests
Create a WebSocket wrapper for tinyhttp, similar to express-ws and express-ws-routes
Usage will be something like this:
If you have a better idea of how the usage should like, share in the thread
Implementation details
App
must extendRouter
from '@tinyhttp/router'If possible, it shouldn't depend on extra modules. But if not, then
ws
can be used.The text was updated successfully, but these errors were encountered: