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

Publish to a single connection ID #47689

Open
aleclarson opened this issue Aug 8, 2020 · 3 comments
Open

Publish to a single connection ID #47689

aleclarson opened this issue Aug 8, 2020 · 3 comments

Comments

@aleclarson
Copy link

aleclarson commented Aug 8, 2020

Am I forced to subscribe the connection on OPEN to a Grip-Channel meant for only one connection before I can send a message via the /publish endpoint?

What if I could publish to a special c:<id> channel that maps to a single connection (without being forced to manually subscribe the connection to it first, of course)? :)

@jkarneges
Copy link
Member

Correct. For publishing to specific connections, you could subscribe using the connection ID as the channel, but this is not done automatically.

@chrismendez
Copy link

Is there not a way to send a websocket text/message to a specific connection id? I can send a message to one particular connection id when responding on the REP spec, but not though any kind of control spec, is that correct?

@jkarneges
Copy link
Member

That's correct. Control endpoints can send messages only to channels.

One thing you can do by connection ID is refresh. Then the backend can respond with any messages, including control messages.

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

3 participants