From bca4afad39b6de4c48824d79c6b88017b996e831 Mon Sep 17 00:00:00 2001 From: Imackie Date: Wed, 28 Jun 2017 09:28:20 -0400 Subject: [PATCH] allow void emitters --- socket-io.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/socket-io.service.ts b/socket-io.service.ts index bcfa713..7eb26f9 100644 --- a/socket-io.service.ts +++ b/socket-io.service.ts @@ -33,7 +33,7 @@ export class WrappedSocket { return this.ioSocket.disconnect.apply(this.ioSocket, arguments); } - emit(eventName: string, data: any, callback?: Function) { + emit(eventName: string, data?: any, callback?: Function) { return this.ioSocket.emit.apply(this.ioSocket, arguments); }