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

Commit 18185fb

Browse files
committed
fix(logging): don't log msgs about websocket state
don't log msgs about websocket state
1 parent 45b0255 commit 18185fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/dev-server/notification-server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function createNotificationServer(config: ServeConfig) {
3232
try {
3333
sendMethod(JSON.stringify(msg));
3434
} catch (e) {
35-
if (e.message !== 'not opened') {
35+
if (e.message !== 'not opened' && e.message !== `Cannot read property 'readyState' of undefined`) {
3636
Logger.error(`error sending client ws - ${e.message}`);
3737
}
3838
}

0 commit comments

Comments
 (0)