chrisenytc / ng-socket

Angular Module for Socket.io
MIT License
49 stars 18 forks source link

allow variable number of arguments to 'emit' function #14

Open rolinh opened 8 years ago

rolinh commented 8 years ago

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.