Discuss this help topic in SecureBlackbox Forum


TElWebSocketBase     See also     

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

This event is fired before a message is sent.


    event TSBWSBeforeMsgSendEvent OnBeforeMessageSend;
    delegate void TSBWSBeforeMsgSendEvent(Object Sender, TElWebSocketMessage Msg);

    Event OnBeforeMessageSend As TSBWSBeforeMsgSendEvent
    Delegate Sub TSBWSBeforeMsgSendEvent(ByVal Sender As Object, ByVal Msg As TElWebSocketMessage)

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

    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);

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

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


  • Msg - the message to be sent.


    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