Search Results for

    Show / Hide Table of Contents

    IWebSocketMessage Interface

    Interface representing a WebSocket message, providing access to the message's stream, text, and binary data.

    Syntax

    Unit: Sparkle.WebSocket

    IWebSocketMessage = interface(IInterface);

    Methods

    Name Description
    Stream Gets the stream associated with the WebSocket message.
    Text Gets the text content of the WebSocket message, if the message is of type Text.
    Data Gets the binary data of the WebSocket message. For Text messages, this will return the UTF-8 encoded bytes of the text.
    GetMessageType Retrieves the type of the WebSocket message (Text, Binary, or Close).

    Properties

    Name Description
    MessageType The type of the WebSocket message.
    In This Article
    Back to top TMS Sparkle v3.32
    © 2002 - 2025 tmssoftware.com