diff --git a/src/RealTimeAPI.ts b/src/RealTimeAPI.ts index 5866ca1..61e3a8b 100644 --- a/src/RealTimeAPI.ts +++ b/src/RealTimeAPI.ts @@ -198,7 +198,7 @@ export class RealTimeAPI { /** * Get Observalble to the Result of Method Call from Rocket.Chat Realtime API */ - public callMethod(method: string, ...params: Array<{}>) { + public callMethod(method: string, ...params: Array<{} | null>) { let id = uuid(); this.sendMessage({ msg: "method",