mirror of
https://github.com/logsol/chuck.js.git
synced 2026-05-11 10:37:34 +00:00
deactivated automatic client reconnection
This commit is contained in:
parent
ebb400a289
commit
5d11540c55
3 changed files with 20 additions and 7 deletions
13
client.js
13
client.js
|
|
@ -6,6 +6,17 @@ var inspector = {};
|
|||
|
||||
requirejs(["Bootstrap/Client"], function(Client) {
|
||||
|
||||
var client = new Client(location.href);
|
||||
var options = {
|
||||
"reconnect": false,
|
||||
"reconnection delay": 500,
|
||||
"max reconnection attempts": 10,
|
||||
|
||||
"transports": [
|
||||
"websocket",
|
||||
"flashsocket"
|
||||
],
|
||||
};
|
||||
|
||||
var client = new Client(location.href, options);
|
||||
inspector.client = client;
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue