swimmadude66 / YTRadio

Very simple distributed YouTube viewer with the idea of synchronized music listening
MIT License
10 stars 10 forks source link

fixed double messages being received #4

Closed acoulon99 closed 9 years ago

acoulon99 commented 9 years ago

Fixed issue where two chat messages were being received.

Issue was being caused by using ChatCtrl twice and each using chatManager. When this happened, event listeners were being registered twice, which caused each callback to happen twice as well. The fix was to create a new controller just for the userlist directive, and make sure each socket event was listened to only once.

acoulon99 commented 9 years ago

Also simplified chat and media socket services