Skip to content

Commit 40b4d0e

Browse files
committed
Update EngineIO and Axios
1 parent c1328af commit 40b4d0e

File tree

4 files changed

+76
-13822
lines changed

4 files changed

+76
-13822
lines changed

app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ updateData();
3232

3333
// Create server
3434
const server = http.createServer(app);
35-
const io = eio(server);
35+
const io = new eio.attach(server);
3636
io.on("connection", router);
3737

3838
server.listen(config.PORT);

frontend/src/app.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import _ from "utils/utils";
22
import EventEmitter from "events";
3-
import eio from "engine.io-client";
3+
import { Socket } from "engine.io-client";
44
import {times, constant, isObject, mapValues} from "lodash";
55
import {STRINGS} from "./config";
66
import GameState from "./gamestate";
@@ -140,7 +140,7 @@ let App = {
140140
query: { id, name }
141141
};
142142
if(!this.ws) {
143-
this.ws = eio(location.href, options);
143+
this.ws = new Socket(location.href, options);
144144
this.ws.on("message", message);
145145
}
146146
},

0 commit comments

Comments
 (0)