Added websocket.jar ver(1.1.6) downloaded from plugins page. At plugins on console it exists. But when connecting to http://host:7070/ws/ I got error
2016.04.20 20:02:43 WARN [Jetty-QTP-BOSH-146]: org.jivesoftware.openfire.websocket.WebSocketPlugin - Failed to create websocket: org.eclipse.jetty.websocket.servlet.ServletUpgradeRequest@fb62b4
How could use websocket with last openfire version?
wroot
2
What OS? Which Java version? I mean Java version which Openfire reports on the home page of Admin Console.
LG1
3
Do you use http(s):// or ws(s):// ?
Using ws://host:7070/ws/
with GitHub - gunblues/strophe-openfire-websocket: use strophe to connect nginx or haproxy websocket proxy (openfire)
I have success The connection URL is
new WebSocket(“ws://host:7070/ws/server?username=login&password=password&resource=d emo”, “xmpp”);
UPDATE: I just updated strophe.js - and websocket is already supported. No need to third-part plugin.
var conn = new Strophe.Connection(“ws://host:7070/ws/server”, {protocol: “ws”});
Thanks for everyone.!
Wrong plugin. That is websockets and no more supported