TsgcWSPServer_PresenceProperties › EncodeBase64

EncodeBase64 Property

If True, string values are base64-encoded before being placed into JSON frames.

Syntax

property EncodeBase64: Boolean read FEncodeBase64 write FEncodeBase64;

Default Value

Remarks

Disabled by default. When enabled, the server base64-encodes string fields (such as message payloads and channel or member names) before serializing them into JSON, so that characters that would otherwise require JSON escaping travel safely across the wire. The matching client must have the same setting enabled.

Example

oPresenceServer.EncodeBase64 := True;

Back to Properties