Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

[BUG] Connection Without Mutual Topics #3

Closed
ytcalifax opened this issue Nov 23, 2022 · 4 comments
Closed

[BUG] Connection Without Mutual Topics #3

ytcalifax opened this issue Nov 23, 2022 · 4 comments

Comments

@ytcalifax
Copy link

ytcalifax commented Nov 23, 2022

Hello again, @qxb3!

I have noticed a new issue with the current version of the package - it seems to be impossible to connect to Omegle.COM using the client without any mutual topics (or the new way of use has not been added to docs). The change you implemented with commit 5326e761b3f074a90b1998d6e46e7fa5fabd043e made it so whenever I do want to use the library without any topics I just get an error.

P.S.: axios has pushed a broken release that breaks GZIP handling, in turn messing up your library completely - I suggest limiting the library to v1.1.2 till they fix it, as this is the latest version that still seems to work.

@qxb3
Copy link
Owner

qxb3 commented Nov 23, 2022

I'm pretty sure you can

client.connect({
  topics: ['gaming']
)}

And if you want to get the mutual topics that you and the stranger matched you can get in on the connected event

client.on('connected', (mutualTopics) => {
  console.log(mutualTopics) // ['gaming']
})

the mutualTopics will be undefined or an empty array i think, if you didn't pass any topics options in the connect method

@ytcalifax
Copy link
Author

Ah, I see, before I just passed an empty list as the options and it worked... I guess I'll need to change it to the new way, so it works. Thanks anyways!

@qxb3
Copy link
Owner

qxb3 commented Nov 23, 2022

Yeah... my bad xd im just coding without really thinking about consequences

@ytcalifax
Copy link
Author

Nah, the issue in this case is that I failed to check that there is a new way to connect when the package broke for me due to it updating.

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

No branches or pull requests

2 participants