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

No default channel #6

Open
NekaouMike opened this issue Dec 22, 2021 · 3 comments
Open

No default channel #6

NekaouMike opened this issue Dec 22, 2021 · 3 comments

Comments

@NekaouMike
Copy link

When using
connection.on("message")
a channel must be defined
ex

connection.on("message","Global",(message) => {
		console.log(message);
	});

however doing

connection.on("message",(message) => {
		console.log(message);
	});

Should default to a Global channel.

@ghost
Copy link

ghost commented Dec 23, 2021

Also like the idea, although instead of the global channel being called Global im going to do this instead.

connection.on("messageGlobal", (channel, message) =>{
});

@NekaouMike
Copy link
Author

That works.

@DarkMalwre
Copy link
Member

yes ofc it does

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