Quantcast
Channel: Ignite Realtime: Message List
Viewing all articles
Browse latest Browse all 11593

Re: Can't connect strophe to Openfire via Websockets (Error during WebSocket handshake)

$
0
0

Update: After restarting openfire server I  now get the following:

 

WebSocket connection to 'ws://127.0.0.1:7070/ws' failed: Error during WebSocket handshake: Unexpected response code: 302

 

Request:

GET http://localhost:7070/ws HTTP/1.1

Upgrade: websocket

Connection: Upgrade

Host: localhost:7070

Origin: http://www.steve.com

Sec-WebSocket-Protocol: xmpp

Pragma: no-cache

Cache-Control: no-cache

Sec-WebSocket-Key: 7ojGbXP+Jo2Wa46bRGtoOA==

Sec-WebSocket-Version: 13

Sec-WebSocket-Extensions: permessage-deflate; client_max_window_bits, x-webkit-deflate-frame

User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.120 Safari/537.36

 

Response:

HTTP/1.1 302 Found

Location: http://localhost:7070/ws/

Content-Length: 0

Server: Jetty(7.x.y-SNAPSHOT)

 

 

Thanks,

Steve


Viewing all articles
Browse latest Browse all 11593

Trending Articles