TextData Event
Passes a received chunk of text data to the application.
Syntax
ANSI (Cross Platform) virtual int FireTextData(WebSocketServerTextDataEventParams *e);
typedef struct {
int64 ConnectionID;
const char *Text;
int Last; int reserved; } WebSocketServerTextDataEventParams; Unicode (Windows) virtual INT FireTextData(WebSocketServerTextDataEventParams *e);
typedef struct {
LONG64 ConnectionID;
LPCWSTR Text;
BOOL Last; INT reserved; } WebSocketServerTextDataEventParams;
- (void)onTextData:(long long)connectionID :(NSString*)text :(BOOL)last;
#define EID_WEBSOCKETSERVER_TEXTDATA 13 virtual INT SECUREBLACKBOX_CALL FireTextData(LONG64 &lConnectionID, LPSTR &lpszText, BOOL &bLast);
Remarks
The class fires this event repeatedly to pass incoming pieces of text data to the application. The Last parameter indicates that this is the last chunk.