Skip to content
This repository has been archived by the owner on Jul 7, 2022. It is now read-only.

does Protocols support ["mqtt"]? #15

Closed
codeHui opened this issue Sep 14, 2016 · 2 comments
Closed

does Protocols support ["mqtt"]? #15

codeHui opened this issue Sep 14, 2016 · 2 comments

Comments

@codeHui
Copy link

codeHui commented Sep 14, 2016

in my test,the same code of 'new WebSocket("ws://test.xxxxxx.cc:52184/mqtt", ["mqtt"]);',that can be opened on brower,but failed in "nativescript-websockets";
and code of 'new WebSocket("ws://xxxxxx") is ok

I notice ""The sending of Protocols support is not fully implemented on both platforms. Do not depend on this; it only partially works..""

I want to make sure if ["mqtt"] is suppored,thank you

@NathanaelA
Copy link
Owner

Not sure what mqtt is; but if you are passing "mqtt" as the protocol; then the receiving side is probably expecting mqtt being sent and so it is probably closing the connection when it doesn't get the a "mqtt" in the protocol list. Like I said in the docs; protocol support (i.e. sending and verifying a protocol) is not implemented; so if the SERVER is requiring "mqtt" then until this feature is added; it won't work unless you change the server to allow no protocol to work...

@NathanaelA
Copy link
Owner

Should be now supported in v1.4.0

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