-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
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
dynamic transports #5075
Comments
Related to #5081 |
engine.io based on the HTTP request, but for Support TCP or other protocols as Transport in Anatomy of an Engine.IO session The connection should be established without a URL as optional |
The So it should be possible to provide additional transports. There is currently no documentation for this though, as you have noted. |
the transports array is a good idea, of course, each transport should be an independent module (like socket.io Redis adapter) |
Update: the client-side now has a way to provide a list of transport implementations: import { Socket, XHR, WebSocket } from "engine.io-client";
const socket = new Socket({
transports: [XHR, WebSocket]
}); Added in version 6.6.0. Note: this is not implemented on the server side yet. |
Transports must be dynamic to provide transports independently.
In my opinion, by making dynamic transports, it is possible to add custom transports such as tcp, mqtt gprc, etc.
But this issue is not implemented in engine.io (or there is no suitable document for it)
Solution
I think providing transport independently, such as engineio-websocket-transport, could be better than the current situation and make it possible to implement different transports.
The text was updated successfully, but these errors were encountered: