ng-socket
ng-socket copied to clipboard
allow variable number of arguments to 'emit' function
Current implementation does not respect emit function prototype. There are cases where one does not want to send data nor use a callback function, etc.
This change allows variable number of arguments to the emit function.
Note that this is not a breaking change as if arguments name, data, callback are given, they are still processed the same way they used to.