Skip to content

Commit

Permalink
add stream port to chain config
Browse files Browse the repository at this point in the history
  • Loading branch information
igorls committed Nov 14, 2022
1 parent 80c57ca commit a66b3e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/socketManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@ export class SocketManager {
});

try {
const port = this.server.manager.config.api.stream_port;
const port = this.server.manager.config.api.stream_port || 1234;
this.uwsApp.listen(port, () => {
hLog(`Socket.IO via uWS started on port ${port}`);
});
} catch (e) {
hLog(e.message);
}

hLog('Websocket manager loaded!');
}

Expand Down

0 comments on commit a66b3e6

Please sign in to comment.