mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-06 02:30:42 -08:00
Make easier to use demos, change to boot.js in further prep for long polling as an option
This commit is contained in:
parent
18e617648f
commit
5237b518d4
8 changed files with 62 additions and 24 deletions
|
|
@ -42,7 +42,7 @@ function Setup_ws() {
|
|||
ws.onerror = function (event) {
|
||||
console.log ("onerror: reconnect");
|
||||
ws = null;
|
||||
ws = new WebSocket (adr + "?" + clog['connection_id']);
|
||||
ws = new WebSocket (adr + "?r=" + clog['connection_id']);
|
||||
ws.onopen = function (event) {
|
||||
console.log ("onerror: reconnect successful");
|
||||
Setup_ws();
|
||||
|
|
@ -56,7 +56,7 @@ function Setup_ws() {
|
|||
ws.onclose = function (event) {
|
||||
console.log ("onclose: reconnect");
|
||||
ws = null;
|
||||
ws = new WebSocket (adr + "?" + clog['connection_id']);
|
||||
ws = new WebSocket (adr + "?r=" + clog['connection_id']);
|
||||
ws.onopen = function (event) {
|
||||
console.log ("onclose: reconnect successful");
|
||||
Setup_ws();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue