Skip to content

socket.removeListener not working #152

@swapnil001

Description

@swapnil001

Hi,

I am trying to remove one listener when my controller is changing via

$scope.$on('$destroy', function() {
            hpSocketFactory.removeListener(emiterListernerLeagueLobby, function(err) {
            });
            hpSDSocketFactory.removeListener(emiterListernerMatchID, function(err) {

            });
        });

But it does not seem to work. Listener is not removed. How to remove one particular listener when controller is changing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions