Sending user messages
moduleDispatcher
- method of event management.
moduleDispatcher
switches to the selected method chatRequest
and transmits necessary data to that.
For example:
moduleDispatcher('chatRequest',{text:'Hello World!!'})
ChatRequestData {
text: string
context?: RandomContext
}
data = {
text: 'Hello World!!'
}