You are browsing documentation for version 5.0 of OroCommerce, OroCRM, and OroPlatform, maintained until August 2024 and supported until March 2026. See version 5.1 (the latest LTS version) of the Oro documentation for information on latest features.
See our Release Process documentation for more information on the currently supported and upcoming releases.
All connections to socket server are protected with Sync authentication tickets.
Before connecting, the client should receive the connection ticket and pass it as part of the connection URL as a ticket query parameter.
For the frontend clients, the authentication ticket can be received by calling the POST request to oro_sync_ticket route. A response of this request is a JSON object with the ticket field that contains a one-time authentication ticket.
For backend clients, the authentication ticket can be received by calling the generateTicket method of the oro_sync.authentication.ticket_provider service.
All tickets have the default limited lifetime of 300 seconds.
When authentication is successful, the client is able to subscribe and send new messages to topics.