mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
fix socket.io backward compatibility with socket v2 clients
This commit is contained in:
parent
c0ddc020d5
commit
5116a2fc82
@ -40,6 +40,7 @@ _This release is scheduled to be released on 2021-04-01._
|
||||
- Fix empty directory for each module's main javascript file in the inspector
|
||||
- Fix Issue with weather forecast icons unit tests with different timezones (#2221)
|
||||
- Fix issue with unencoded characters in translated strings when using nunjuck template (`Loading …` as an example)
|
||||
- Fix socket.io backward compatibility with socket v2 clients
|
||||
|
||||
## [2.14.0] - 2021-01-01
|
||||
|
||||
|
@ -28,7 +28,11 @@ function Server(config, callback) {
|
||||
server = require("http").Server(app);
|
||||
}
|
||||
const io = require("socket.io")(server, {
|
||||
cors: {}
|
||||
cors: {
|
||||
origin: /.*$/,
|
||||
credentials: true
|
||||
},
|
||||
allowEIO3: true
|
||||
});
|
||||
|
||||
Log.log(`Starting server on port ${port} ... `);
|
||||
|
Loading…
x
Reference in New Issue
Block a user