Skip to content

Commit

Permalink
allow void emitters
Browse files Browse the repository at this point in the history
  • Loading branch information
Css-IanM committed Jun 28, 2017
1 parent d286330 commit bca4afa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion socket-io.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit bca4afa

Please sign in to comment.