File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed
packages/app/src/app/overmind/effects/live Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments