Define onRemove() to be async, as it is implemented

This commit is contained in:
Tadeusz Sośnierz 2022-04-22 14:35:20 +02:00
parent 2d712be3c0
commit c2f97825f7

View File

@ -64,7 +64,7 @@ export interface IConnection {
* If supported, this is sent when a user attempts to remove the connection from a room. The connection
* state should be removed and any resources should be cleaned away.
*/
onRemove?: () => void;
onRemove?: () => Promise<void>;
toString(): string;
}
}