Starting in Winter '27, Salesforce enforces the Bayeux protocol requirement that Streaming API (CometD) clients send messages in a JSON-encoded array — including when sending only one message.
Customers who use Streaming API(CometD) to subscribe to PushTopics, generic streaming, Platform Events, and Change Data Capture events.
A client that sends a standalone JSON object (instead of a JSON array) receives an HTTP 400 response to handshake, connect, subscribe, unsubscribe, and other Bayeux requests.
Starting with the Winter '27 release, enforcement will strictly require requests to use a JSON array, as originally documented. Any requests previously sent as a standalone JSON object will fail.
Integrations that send unwrapped Bayeux messages can't establish or maintain Streaming API subscriptions until their payload format is updated to use a JSON array.
Update the Streaming API client to wrap every Bayeux message in a JSON array.
For example, send a single message as:
[
{
"channel": "/meta/handshake",
"version": "1.0",
"supportedConnectionTypes": ["long-polling"]
}
]
Do not send the same message as an unwrapped JSON object:
{
"channel": "/meta/handshake",
"version": "1.0",
"supportedConnectionTypes": ["long-polling"]
}
Bayeux messages must be sent in a JSON-encoded array, which is a requirement of the Bayeux protocol, this aligns with the public CometD documentation.
005461982

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.