Skip to content
This repository has been archived by the owner on Feb 26, 2021. It is now read-only.

Add query option for socket.io client library #78

Closed
pashoo2 opened this issue Oct 12, 2019 · 2 comments
Closed

Add query option for socket.io client library #78

pashoo2 opened this issue Oct 12, 2019 · 2 comments

Comments

@pashoo2
Copy link

pashoo2 commented Oct 12, 2019

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: {
ws: true,
},
};
and use the 'patch-package' to resolve the issue

@pashoo2
Copy link
Author

pashoo2 commented Oct 18, 2019

Query parameter will be added to the js-libp2p-webrtc-star according to the issue libp2p/js-libp2p-webrtc-star#186

@jacobheun
Copy link
Contributor

Closing this. The repo is currently deprecated with only bug fix support.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants