Skip to content

Instantly share code, notes, and snippets.

@alexeybondarenko
Last active August 8, 2017 20:31
Show Gist options
  • Save alexeybondarenko/2bf76d0cbfb717cf7e0e750240ca41d1 to your computer and use it in GitHub Desktop.
Save alexeybondarenko/2bf76d0cbfb717cf7e0e750240ca41d1 to your computer and use it in GitHub Desktop.
const server = app.listen(app.get('PORT'), (error) => {
if (error) {
console.log('Server started with an error', error);
process.exit(1);
}
console.log(`Server started and is listening at http://localhost:${app.get('PORT')}`);
});
const socket = new binaryServer({
server: server,
path: '/socket',
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment