Messages sent by the server

Top  Previous  Next

These are the messages that the Server may send to the Client's main socket. For each message, the raw message that is sent is shown, along with the programming information for the SDK tools.

 

For example, looking at the table for Event:, you should be able to work out the following:

 

Visual Basic: to handle Event: messages, if you have a form containing an SDK control named, say, SDKControl1, then you should put your event handling code into the SDKControl1_WhiskerEvent() Subroutine. This code will be called whenever an Event: message is received.
C++: If you have a class named CMyTask derived from the CWhiskerTask class that contains a function called CMyTask::IncomingEvent(), then the receipt of an Event: message will result in this function being called.

 

If the paragraph corresponding to your chosen language doesn't make sense, then you should make sure you learn more about the language before attempting to write behavioural tasks.

 

This section explains the syntax of

 

Event
Info
KeyEvent
SyntaxError
Error
Fault
Warning
Ping
ClientMessage