Skip to content

Commit

Permalink
* (bluefox) Removed "force web sockets" option
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanBluefox committed Jan 30, 2022
1 parent 814e784 commit df5dc4b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 12 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,9 @@ You can set option *Force Web-Sockets* to force using only web-sockets transport
-->

## Changelog
### __WORK IN PROGRESS__
* (bluefox) Removed "force web sockets" option

### 4.0.1 (2022-01-29)
* (bluefox) Fixed authentication

Expand Down
10 changes: 2 additions & 8 deletions admin/index_m.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
$('.col-ttl').hide();
}
}

// the function loadSettings has to exist ...
function load(settings, onChange) {
if (!settings) return;
Expand Down Expand Up @@ -170,17 +170,11 @@
<label class="translate" for="ttl">Login timeout(sec):</label>
</div>
</div>
<div class="row socketio">
<div class="col s12 m3">
<input type="checkbox" class="value" id="forceWebSockets"/>
<span class="translate" for="forceWebSockets">Force Web-Sockets:</span>
</div>
</div>
</div>
<div id="tab-le" class="col s12 page">
<div class="row">
<div class="col s12">
<img src="../../img/le.png" class="logo-le">
<img src="../../img/le.png" class="logo-le" alt="logo"/>
</div>
</div>
<div class="row">
Expand Down
1 change: 0 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,6 @@
"certPrivate": "",
"certChained": "",
"defaultUser": "admin",
"forceWebSockets": false,
"leEnabled": false,
"leUpdate": false,
"leCheckPort": 80
Expand Down
3 changes: 0 additions & 3 deletions lib/socket.js
Original file line number Diff line number Diff line change
Expand Up @@ -1780,9 +1780,6 @@ function IOSocket(server, settings, adapter, ignore, store) {
path.resolve = pathResolve; // restore path.resolve once done
that.webServer.__inited = true;
}

// force using only websockets
that.settings.forceWebSockets && that.server.set('transports', ['websocket']);
} else {
that.server = server;
}
Expand Down

0 comments on commit df5dc4b

Please sign in to comment.