Skip to content
This repository has been archived by the owner on May 1, 2020. It is now read-only.

Commit

Permalink
fix(serve): fix EADDRINUSE issue with dev logger server
Browse files Browse the repository at this point in the history
  • Loading branch information
imhoffd committed Jul 12, 2018
1 parent 4b4874b commit 271a6e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dev-server/notification-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function createNotificationServer(config: ServeConfig) {
});

// create web socket server
const wss = new WebSocketServer({ port: config.notificationPort });
const wss = new WebSocketServer({ host: config.host, port: config.notificationPort });
wss.broadcast = function broadcast(data: any) {
wss.clients.forEach(function each(client: any) {
client.send(data);
Expand Down

0 comments on commit 271a6e1

Please sign in to comment.