Discuss this help topic in SecureBlackbox Forum

TElWebSocketBase.OnBeforeMessageSend

TElWebSocketBase     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


This event is fired before a message is sent.

Declaration

[C#]
    event TSBWSBeforeMsgSendEvent OnBeforeMessageSend;
    delegate void TSBWSBeforeMsgSendEvent(Object Sender, TElWebSocketMessage Msg);

[VB.NET]
    Event OnBeforeMessageSend As TSBWSBeforeMsgSendEvent
    Delegate Sub TSBWSBeforeMsgSendEvent(ByVal Sender As Object, ByVal Msg As TElWebSocketMessage)

[Pascal]
    property OnBeforeMessageSend : TSBWSBeforeMsgSendEvent;
    TSBWSBeforeMsgSendEvent = procedure(Sender : TObject; Msg : TElWebSocketMessage) of object;

[C++]
    void get_OnBeforeMessageSend(TSBWSBeforeMsgSendEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnBeforeMessageSend(TSBWSBeforeMsgSendEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBWSBeforeMsgSendEvent)(void * _ObjectData, TObjectHandle Sender, TElWebSocketMessageHandle Msg);

[PHP]
    TSBWSBeforeMsgSendEvent|callable|NULL get_OnBeforeMessageSend()
    void set_OnBeforeMessageSend(TSBWSBeforeMsgSendEvent|callable|NULL $Value)
    callable TSBWSBeforeMsgSendEvent(TObject $Sender, TElWebSocketMessage $Msg)

[Java]
    TSBWSBeforeMsgSendEvent getOnBeforeMessageSend();
    void setOnBeforeMessageSend(TSBWSBeforeMsgSendEvent Value);
    TSBWSBeforeMsgSendEvent.Callback OnBeforeMessageSend = new TSBWSBeforeMsgSendEvent.Callback() {
        public void TSBWSBeforeMsgSendEventCallback(TObject Sender, TElWebSocketMessage Msg) {
            //...
        }
    }

Parameters

  • Msg - the message to be sent.

Description

    This event is fired each time the component is ready to send a WS message.

See also:     SendData     SendText    

Discuss this help topic in SecureBlackbox Forum