Skip to content
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

wss Protocol not supported #3

Open
Zhanweelee opened this issue Jan 1, 2017 · 1 comment
Open

wss Protocol not supported #3

Zhanweelee opened this issue Jan 1, 2017 · 1 comment

Comments

@Zhanweelee
Copy link

var c = new Strophe.Connection("wss://example.com/websocket/");
c.connect(jid, pass);

This error comes out and I cannot find a way to fix it.

Error: Protocol not supported.
    at send (/Users/jonathan/node_modules/xmlhttprequest/lib/XMLHttpRequest.js:299:15)
    at sendFunc (/Users/jonathan/node_modules/node-strophe/strophe.js:2218:25)
    at Object._processRequest (/Users/jonathan/node_modules/node-strophe/strophe.js:2229:17)
    at Object._throttledRequestHandler (/Users/jonathan/node_modules/node-strophe/strophe.js:2266:18)
    at Object.connect (/Users/jonathan/node_modules/node-strophe/strophe.js:1648:14)
    at repl:1:12
    at sigintHandlersWrap (vm.js:22:35)
    at sigintHandlersWrap (vm.js:96:12)
    at ContextifyScript.Script.runInThisContext (vm.js:21:12)
    at REPLServer.defaultEval (repl.js:313:29)
@matthiasvdh
Copy link

Thanks for your interest, Zhanweelee.

Most likely the version we ported does not include support for WebSockets yet.

We do not plan to use that functionality ourselves.

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

No branches or pull requests

2 participants