Skip to content

Commit

Permalink
Close connection on 403 status.
Browse files Browse the repository at this point in the history
  • Loading branch information
jakgajtk committed Nov 27, 2019
1 parent 312b38e commit 57e0cd9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions assets/js/phoenix.js
Original file line number Diff line number Diff line change
Expand Up @@ -1150,6 +1150,10 @@ export class LongPoll {
this.onopen()
this.poll()
break
case 403:
this.onerror()
this.close()
break
case 0:
case 500:
this.onerror()
Expand Down

0 comments on commit 57e0cd9

Please sign in to comment.