Client closed connection unexpectedly
Hi,
I'm new to websockets and Repetier, and I managed to get stuck in the connection making phase. Please help!
Relevant javacode is:
var WebSocket = WebSocket;
On firefox console I get:
The connection to ws://localhost:3344/socket/?lang=en was interrupted while the page was loading.
On Chromium console:
WebSocket connection to 'ws://localhost:3344/socket/?lang=en' failed: One or more reserved bits are on: reserved1 = 1, reserved2 = 0, reserved3 = 1
And the Repetier server log says Client closed connection unexpectedly
I'm new to websockets and Repetier, and I managed to get stuck in the connection making phase. Please help!
Relevant javacode is:
var WebSocket = WebSocket;
var serverUrl = "ws://localhost:3344/socket/?lang=en";
connection = new WebSocket(serverUrl);
On firefox console I get:
The connection to ws://localhost:3344/socket/?lang=en was interrupted while the page was loading.
On Chromium console:
WebSocket connection to 'ws://localhost:3344/socket/?lang=en' failed: One or more reserved bits are on: reserved1 = 1, reserved2 = 0, reserved3 = 1
And the Repetier server log says Client closed connection unexpectedly
Comments
At the end is a link to a demo in javascript. There you see how to do it right and also how to authenticate and ping server so connection stays open.