openvidu-browser: optional handler property in Session.off method

pull/681/head
pabloFuente 2022-01-10 11:39:24 +01:00
parent e09d0f171e
commit 777b329e9f
1 changed files with 1 additions and 1 deletions

View File

@ -737,7 +737,7 @@ export class Session extends EventDispatcher {
/**
* See [[EventDispatcher.off]]
*/
off<K extends keyof SessionEventMap>(type: K, handler: (event: SessionEventMap[K]) => void): this {
off<K extends keyof SessionEventMap>(type: K, handler?: (event: SessionEventMap[K]) => void): this {
super.off(type, handler);