send auth payload on websocket open
close session on logout add socket reconnect on close
This commit is contained in:
parent
87dce82c53
commit
0079c72ea0
13 changed files with 83 additions and 38 deletions
|
|
@ -11,11 +11,13 @@ export const postMount = (): void => (
|
|||
);
|
||||
|
||||
|
||||
export const postInitSession = (cid: string): void => (
|
||||
post("init-session", cid)
|
||||
export const postInitSession = (): void => (
|
||||
post("init-session", null)
|
||||
);
|
||||
|
||||
|
||||
export const postMessage = (payload: ClientMessage): void => (
|
||||
post('client-message', payload)
|
||||
);
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue