Skip to content

Error event judgement in file 'stream.js' #155

Description

@j78742

// according to baygeldin/ws-streamify#1
// Nodejs WebSocketServer cause memory leak
// Handlers like onerror, onclose, onmessage and onopen are accessible via setter/getter
// And setter first of all fires removeAllListeners, that doesnt make inner array of clients on

var eventListenerSupport = ('undefined' === typeof socket.addEventListener)

The sign ‘===’ in this line of code should change to ‘!==’.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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