NoobHub channes

Hello! I’m not sure if this is good place to ask, so if it isn’t please move it where it should be.

My problem is that subscribe function has channel to connect for, but messages are send to every channel. Is there any way to send it only to one channel? I tried to find it but I failed miserably.

Thanks.

What channels? What are you trying to send? How are you trying to send it? We need more info and maybe some code to know how to help. 

–SonicX278

I’m using NoobHub and as you can see on github it’s quite simple, you use one function to receive messages/subscribe to channel

 hub:subscribe({ channel = "hello-world"; callback = function(message) if(message.action == "ping") then print("Pong!") end; end; });

and second to send/publish them

 hub:publish({ message = { action = "ping", timestamp = system.getTimer() } });

My question is how to publish/send messages only to one channel. In given example and all tutorials I found they are using these functions. I tried to add another parameters to that table, but it didn’t work.

as far as i know your sending the message to the channel “hello-world”.

btw, i tried to find any manual online of noobhub without any success. do you know if you can build a real chat with it?

can you tell when someone joins a room? a room can exist even if noone is inside it? can i list all rooms from a loby for example?

when someone enteres a room can he/she see the historic conversation of that room?

Okay, now I understand how it works. Once you subscribe to a channel you can only send messages to it.

What channels? What are you trying to send? How are you trying to send it? We need more info and maybe some code to know how to help. 

–SonicX278

I’m using NoobHub and as you can see on github it’s quite simple, you use one function to receive messages/subscribe to channel

 hub:subscribe({ channel = "hello-world"; callback = function(message) if(message.action == "ping") then print("Pong!") end; end; });

and second to send/publish them

 hub:publish({ message = { action = "ping", timestamp = system.getTimer() } });

My question is how to publish/send messages only to one channel. In given example and all tutorials I found they are using these functions. I tried to add another parameters to that table, but it didn’t work.

as far as i know your sending the message to the channel “hello-world”.

btw, i tried to find any manual online of noobhub without any success. do you know if you can build a real chat with it?

can you tell when someone joins a room? a room can exist even if noone is inside it? can i list all rooms from a loby for example?

when someone enteres a room can he/she see the historic conversation of that room?

Okay, now I understand how it works. Once you subscribe to a channel you can only send messages to it.