-
Notifications
You must be signed in to change notification settings - Fork 70
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
PUB/SUB Over websockets #163
Comments
pub sub works, and if you're using it in a browser, verify mapping |
Yeah, Im just running the ws example in this project. changed the client to |
Also, how would you add a subscription in the browser ? |
client and server paradigm is not always helpful when doing nanomsg. better to talk about endpoints and socket types. we bind subscribers and just as we bind publishers... and likewise with connect and all other interchangeable socket types. anyway let's take a look at your use case and see if we cant get something to work based on the example:
|
Ah, so the browser connection mapping needs to match the server. That wasn't really clear. I was using |
Is there a way to specify subscriptions on in the browser |
Exactly, nanosmg websocket options in the browser === not intuitive.
you mean like setting subscription channels? i don't think so, the issue came up once on libnanomsg, and from what i remember the answer is no |
I'm assuming this is a constraint of the nanomsg library, but is it possible to use the pub/sub sockets with a websocket transport? I was able to use the
pair
type as shown in the examples, but it won't connect using pub sub.Does it only work with 2-way socket types?
The text was updated successfully, but these errors were encountered: