mirror of
https://github.com/filecoin-project/slate.git
synced 2024-09-20 02:37:09 +03:00
connects websockets
This commit is contained in:
parent
6d29342792
commit
0acb9783d5
@ -19,6 +19,8 @@ import compression from "compression";
|
||||
import cors from "cors";
|
||||
import morgan from "morgan";
|
||||
|
||||
Websocket.create();
|
||||
|
||||
const app = next({
|
||||
dev: !Environment.IS_PRODUCTION,
|
||||
dir: __dirname,
|
||||
@ -474,7 +476,7 @@ app.prepare().then(async () => {
|
||||
const listenServer = server.listen(Environment.PORT, (e) => {
|
||||
if (e) throw e;
|
||||
|
||||
Websocket.create(server);
|
||||
Websocket.create();
|
||||
NodeLogging.log(`started on http://localhost:${Environment.PORT}`);
|
||||
});
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user