TsgcWSPClient_STOMP_RabbitMQ › Properties › Client
References the TsgcWebSocketClient that carries STOMP frames to RabbitMQ's Web-STOMP plugin on port 15674.
property Client: TsgcWSComponent_WSClient read FClient write SetClient;
nil
Drop a TsgcWebSocketClient on the form and assign it to Client to run STOMP over WebSockets against RabbitMQ's Web-STOMP plugin. The WebSocket client manages the transport (host, port, TLS, proxy, HTTP headers and subprotocol negotiation) while this component implements the STOMP frame layer on top. After assignment the client sends CONNECT automatically once the WebSocket handshake completes: configure host/port on the TsgcWebSocketClient and set Active := True. The RabbitMQ Web-STOMP plugin listens on port 15674 (plaintext) and 15673/15675 (TLS) and the component negotiates one of v12.stomp, v11.stomp or v10.stomp via the Sec-WebSocket-Protocol header, based on the flags in Versions. Use Broker instead when you need raw TCP on port 61613/61614.
WSClient := TsgcWebSocketClient.Create(nil);
WSClient.Host := 'localhost';
WSClient.Port := 15674;
oRabbit := TsgcWSPClient_STOMP_RabbitMQ.Create(nil);
oRabbit.Client := WSClient;
WSClient.Active := True;