You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Hi team, when a client publishes a topic, it does not receive an announce response from the server unless the client is also subscribed to the same topic. According to the protocol spec, the server should send an announce in response to a client's publish message. Additionally, WebSocket pings and pongs are not exchanged until a subscription is made.
To Reproduce
Steps to reproduce the behavior:
Publish a topic to the server without subscribing to it:
Observe that WebSocket pings and pongs also begin only after the subscription.
Expected behavior
The client should receive an announce response from the server immediately after publishing a topic, regardless of whether it is subscribed to that topic. Additionally, WebSocket pings and pongs should occur as expected without requiring a subscription.
Desktop (please complete the following information):
OS: macOS
Project Information: Getting Started example simulator on Java 17, WPILib 2025.2.1
Additional context
The lack of an announce response for published topics without a subscription can cause issues for clients expecting confirmation or awareness of the topic they just published. The dependency on subscriptions for WebSocket ping/pong behavior might also indicate a related issue in connection handling.
Thanks for the report. I noticed the spec also needs updating to clarify in both the subscribe and announce message sections that announce is sent in response to a subscribe message for existing topics that have not yet been announced to the client. This was an oversight when we changed the spec from announcing on connection to announcing on subscribe.
Does this mean that the client will receive announcements for topics it hasn't requested a subscription for? I was under the impression that new announcements are only sent when the subscription is created, when a topic starts publishing, or when a prefix topic has a new subtopic.
Describe the bug
Hi team, when a client publishes a topic, it does not receive an
announce
response from the server unless the client is also subscribed to the same topic. According to the protocol spec, the server should send anannounce
in response to a client'spublish
message. Additionally, WebSocket pings and pongs are not exchanged until a subscription is made.To Reproduce
Steps to reproduce the behavior:
announce
response is received.announce
response containing thepubuid
:Expected behavior
The client should receive an
announce
response from the server immediately after publishing a topic, regardless of whether it is subscribed to that topic. Additionally, WebSocket pings and pongs should occur as expected without requiring a subscription.Desktop (please complete the following information):
Additional context
The lack of an
announce
response for published topics without a subscription can cause issues for clients expecting confirmation or awareness of the topic they just published. The dependency on subscriptions for WebSocket ping/pong behavior might also indicate a related issue in connection handling.Wireshark dump for further debugging: NTCoreWiresharkDump.zip
The text was updated successfully, but these errors were encountered: