Skip to content

Commit

Permalink
trigger disconnect event when reloading the page
Browse files Browse the repository at this point in the history
  • Loading branch information
saif_eddine_hasnaoui committed Jun 8, 2022
1 parent e657fbf commit b3a4948
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/config/socket-io.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ export interface SocketIoConfig {
extraHeaders?: {
[header: string]: string;
};

/**
* decide whether to trigger disconnect event when reloading the page or not
* */
closeOnBeforeunload?: boolean;

// Additional options for NodeJS Engine.IO clients omitted: https://socket.io/docs/client-api/
};
Expand Down

0 comments on commit b3a4948

Please sign in to comment.