diff --git a/LICENSE b/LICENSE index bd83d7e..56114d3 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2017 Bougarfaoui El houcine +Copyright (c) 2017 Rodrigo Gonzalez Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/socket-io.service.ts b/src/socket-io.service.ts index ac30dde..e7ed08a 100644 --- a/src/socket-io.service.ts +++ b/src/socket-io.service.ts @@ -34,7 +34,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); }