angularjs - Pusher "existing subscription to channel" error -
i getting following error pusher:
pusher : error : {"type":"websocketerror","error": {"type":"pushererror","data":{"code":null,"message":"existing subscription channel room-1"}}} i use angular. every time enter "room" state, set pusher subscribe room channel. however, if @ point leave room state , come back, tries subscribe second time , throws above error. tried first check existing subscription using pusher.channel, doesn't seem work. have idea what's wrong? (my coffeescript code below)
pusher = $pusher($window.client) unless pusher.channel('room-' + $scope.room.id) room_channel = pusher.subscribe('room-' + $scope.room.id) i should note pusher.channel seems work when manually execute in chrome console...
i've been getting same issue on last few days, using angular-pusher well..
Comments
Post a Comment