Skip to content

Commit 9ddba5c

Browse files
committed
Send less messages to Sentry
1 parent 70ccbf4 commit 9ddba5c

File tree

1 file changed

+0
-24
lines changed
  • packages/app/src/app/overmind/effects/live

1 file changed

+0
-24
lines changed

packages/app/src/app/overmind/effects/live/index.ts

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -195,24 +195,6 @@ class Live {
195195
},
196196
});
197197

198-
this.socket.onClose(e => {
199-
captureException(
200-
new Error('Connection loss with live, reason: ' + e.code)
201-
);
202-
203-
// if (e.code === 1006) {
204-
// // This is an abrupt close, the server probably restarted or carshed. We don't want to overload
205-
// // the server, so we manually wait and try to connect;
206-
// this.socket.disconnect();
207-
208-
// const waitTime = 500 + 5000 * Math.random();
209-
210-
// window.setTimeout(() => {
211-
// this.socket.connect();
212-
// }, waitTime);
213-
// }
214-
});
215-
216198
this.socket.connect();
217199
window.socket = this.socket;
218200
this.debug('Connecting to socket', this.socket);
@@ -309,12 +291,6 @@ class Live {
309291
event === 'phx_error';
310292
const alteredEvent = disconnected ? 'connection-loss' : event;
311293

312-
if (event === 'phx_error') {
313-
captureException(
314-
new Error('Received phoenix error: ' + JSON.stringify(data))
315-
);
316-
}
317-
318294
const _isOwnMessage = Boolean(
319295
data && data._messageId && this.pendingMessages.delete(data._messageId)
320296
);

0 commit comments

Comments
 (0)