Skip to content

Socket.io Cannot read property 'encode' of undefined #48

Open

Description

@imron02

Hi, I am try to install loopback-connector-mongodb for my socket.io. And after that, I got error like this

this.encoder.encode(packet, function(encodedPackets) {
^
TypeError: Cannot read property 'encode' of undefined

After I find out, it turns out this error caused by socket.io plugin that is installed in @mean-expert/loopback-component-realtime is version 1.7.x.
So after I update the manual to version 2.x, the error does not reappear.

Maybe you can fix that?
Thanks,
Imron

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions