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

Is there a way to set a channel/topic from a client using TCP? #242

Closed
JoseFMP opened this issue Dec 4, 2018 · 1 comment
Closed

Is there a way to set a channel/topic from a client using TCP? #242

JoseFMP opened this issue Dec 4, 2018 · 1 comment
Labels

Comments

@JoseFMP
Copy link

JoseFMP commented Dec 4, 2018

Using the HTTP API I can set a topic in nsqd:

$ curl -X POST http://127.0.0.1:4151/topic/create?topic=name

I can also create a channel:

$ curl -X POST http://127.0.0.1:4151/channel/create?topic=name&channel=name

Now I am wondering. Is it possible to do the same thing from a client using the TCP Protocol?
If thus, then the library go-nsq is useless for this purpose. Correct?

@mreiferson
Copy link
Member

Yes, there is no functionality in go-nsq to do that explicitly. However, publishing to a topic will create it if it does not yet exist, and subscribing to a topic will create a channel if it does not already exist.

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

No branches or pull requests

2 participants