fsCommBusCall

The fsCommBusCall function is used to call an event registered in a WASM or JS module..

 

Syntax
bool fsCommBusCall(
    const char* eventName,
    const char* buf,
    unsigned int bufSize,
    FsCommBusBroadcastFlags broadcastTo = FsCommBusBroadcast_Default
    );

 

Members
Parameters Description
eventName The name of the event to call.
buf A buffer that will be sent with the callback.
bufSize Size of the buffer that is being sent with the callback.
broadcastTo

The flags that determined which module (JS/WASM) the event is to be broadcast to. You can find more details here: FsCommBusBroadcastFlags

The default value is FsCommBusBroadcast_Default.


Return Values

The function returns False if something is wrong with the arguments and/or the registration did not happen, otherwise it returns True.

 

Remarks

N/A

 

See Also