Description

Configures how to map streaming APIs to WebSocket.

WebSocket is a message-based protocol with these send via Efl.Net.Dialer.Websocket.text_send and Efl.Net.Dialer.Websocket.binary_send and delivered via events such as "message,text" and "message,binary".

However this class can operate in streaming mode, mapping each Efl.Io.Writer.write to a Efl.Net.Dialer.Websocket.binary_send if streaming_mode is set to Efl.Net.Dialer.Websocket.Streaming_Mode.binary, of Efl.Net.Dialer.Websocket.text_send if Efl.Net.Dialer.Websocket.Streaming_Mode.text

Efl.Io.Reader.read may consume less then the whole received message, in this case the rest of the message is kept for the next read call. (Note this differs from SOCK_SEQPACKET + read(2)).

By default, streaming is disabled (Efl.Net.Dialer.Websocket.Streaming_Mode.disabled).

Since 1.19

Values

  • streaming_mode - Streaming mode

Signature

@property streaming_mode {
    get {
        values {
            streaming_mode: Efl.Net.Dialer.Websocket.Streaming_Mode;
        }
    }
    set {
        values {
            streaming_mode: Efl.Net.Dialer.Websocket.Streaming_Mode;
        }
    }
}

C signature

Efl_Net_Dialer_Websocket_Streaming_Mode efl_net_dialer_websocket_streaming_mode_get(const Eo *obj);
void efl_net_dialer_websocket_streaming_mode_set(Eo *obj, Efl_Net_Dialer_Websocket_Streaming_Mode streaming_mode);

Implemented by

  • Efl.Net.Dialer.Websocket.streaming_mode