Subprotocol error when creating connection with ws@8.0.0
See original GitHub issueThe 8.0.0
version of ws
introduced some breaking changes around protocols. Attempting to create a connection with this version yields the following error.
could not create WAMP transport 'websocket': SyntaxError: An invalid or duplicated subprotocol was specified
at initAsClient (C:\Users\BenHanna\source\repos\wamp\node_modules\ws\lib\websocket.js:677:15)
at new WebSocket (C:\Users\BenHanna\source\repos\wamp\node_modules\ws\lib\websocket.js:80:7)
at C:\Users\BenHanna\source\repos\wamp\node_modules\autobahn\lib\transport\websocket.js:200:22
at Factory.create (C:\Users\BenHanna\source\repos\wamp\node_modules\autobahn\lib\transport\websocket.js:288:9)
at Connection._create_transport (C:\Users\BenHanna\source\repos\wamp\node_modules\autobahn\lib\connection.js:112:44)
at retry (C:\Users\BenHanna\source\repos\wamp\node_modules\autobahn\lib\connection.js:249:33)
at Connection.open (C:\Users\BenHanna\source\repos\wamp\node_modules\autobahn\lib\connection.js:383:4)
at Object.<anonymous> (C:\Users\BenHanna\source\repos\wamp\index.js:65:16)
at Module._compile (internal/modules/cjs/loader.js:1072:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
could not create any WAMP transport
Rolling back to 7.5.3
makes the issue go away.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Lots of Subprotocol errors · Issue #6 · INFURA/devp2p-network
I'm seeing a lot of peers getting removed because of a subprotocol error. ... and it looks like the library is doing that...
Read more >LittleWeeb_Installer_v0.4.0.302.exe - Hybrid Analysis
Guest System: Windows 7 64 bit, Professional, 6.1 (build 7601), Service Pack 1 ... Creates a writable file in a temporary directory.
Read more >PhD_Thesis_Matteo_Pompili.pdf - TU Delft Research Portal
The first result of this thesis is building a three-node entanglement-based quantum network. We demonstrated distribution of Greenberger-Horne-Zeilinger ...
Read more >Download Patch File
webkitGetAsEntry()}if(!entry){console.error("File upload not ... make sure it is exported");return func}function ccall(ident,returnType,argTypes,args ...
Read more >23rd Pacific-Asia Conference, PAKDD 2019, Macau, China ...
Our model uses recorded failure history to make failure predictions on a ... Algorithm (˜ η , α): η ˜ estimate from Lk-fun...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hello, everyone! Are there any good news on this issue? 😃
@oberstet I would suggest to also update the README, as it can be misleading for newbies. Initially I thought it supported up to version 2, we can probably get rid of the comment for Node V4.5.0 (I guess no one has been using that for years).