Skip to content

Commit

Permalink
socket. Added missing socket disconnection event (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyco97 authored Aug 2, 2024
1 parent ffbfc5e commit e2a9ddd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Socket.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ export const Socket: FC<SocketProps> = ({
() => {
// Set socket_down alert
dispatch.alerts.setAlert('socket_down')
eventDispatch('phone-island-socket-disconnected', {})
console.debug('Socket is unreachable!')
},
7 * 1000, // Waits for the response 7 seconds
Expand Down

0 comments on commit e2a9ddd

Please sign in to comment.