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); }