TsgcWSPClient_STOMP_RabbitMQProperties › Client

Client Property

References the TsgcWebSocketClient that carries STOMP frames to RabbitMQ's Web-STOMP plugin on port 15674.

Syntax

property Client: TsgcWSComponent_WSClient read FClient write SetClient;

Default Value

nil

Remarks

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.

Example


WSClient := TsgcWebSocketClient.Create(nil);
WSClient.Host := 'localhost';
WSClient.Port := 15674;
oRabbit := TsgcWSPClient_STOMP_RabbitMQ.Create(nil);
oRabbit.Client := WSClient;
WSClient.Active := True;

Back to Properties