Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
imron02 opened this issue Nov 15, 2017 · 0 comments
Open

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

imron02 opened this issue Nov 15, 2017 · 0 comments

Comments

@imron02
Copy link

imron02 commented Nov 15, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant