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

React native: undefined is not an object (evaluating 'this.connector.channel') #364

Closed
alexanderstk93 opened this issue Dec 14, 2022 · 1 comment

Comments

@alexanderstk93
Copy link

  • Echo Version: 1.14.2
  • NPM Version: 8.15.0
  • Node Version: 16.17.0

Description:

Trying to listen to a socketi websocket server but after initializing the echo instance I cannot call channel parameter.

Steps To Reproduce:

const options = {
broadcaster: 'socket.io',
client: socketio,
key: "{key}",
wsHost: "{host}",
wsPort: 6001,
wssPort: 6001,
forceTLS: false,
encrypted: false,
disableStats: false,
enabledTransports: ["ws", "wss"],
};

const echo = new Echo({
options,
});

echo
.channel({channel})
.listen({Event}, ev => console.log(ev));

//it's returning: TypeError: undefined is not an object (evaluating 'this.connector.channel')

I have to mention that I have tested the events in my laravel project and I can listen to them.

@driesvints
Copy link
Member

Hey there,

Can you first please try one of the support channels below? If you can actually identify this as a bug, feel free to open up a new issue with a link to the original one and we'll gladly help you out.

Thanks!

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

2 participants