Created
September 12, 2014 09:59
-
-
Save cray0000/ec3d17d5093fc76e9e7f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
page.model.socket?.onerror = (message, errCode) -> | |
if message not in ['Unknown session ID', 'Request failed'] | |
app.postError new Error message, {source: 'model-socket-error'} | |
page.model.shareConnection?.on 'error', (e) -> | |
app.postError e, {source: 'model-share-error'} | |
page.model.on 'error', (e) -> | |
app.postError e, {source: 'model-error'} | |
if e.message && e.message.indexOf('403') != -1 | |
page.model.disconnect() | |
throw e |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment