This repository has been archived by the owner on Apr 24, 2023. It is now read-only.
Add query option for socket.io client library #186
Labels
exp/novice
Someone with a little familiarity can pick up
help wanted
Seeking public contribution on this issue
status/ready
Ready to be worked
It's necessary to add a query option, to allow for a server side to define wich query has come - it it from the 'js-libp2p-websocket-star' and 'js-libp2p-webrtc-star'.
For example, i wrote the proxy server and it's necessary to decide which server must handle the query received - 'libp2p-websocket-star-rendezvous' or 'star-signal' instance.
At now i've added this configuration to the library:
const sioOptions = {
transports: ['websocket'],
'force new connection': true,
query: {
wrtc: true,
},
};
and use the 'patch-package' to resolve the issue
The text was updated successfully, but these errors were encountered: