Interface: ClientInterface

hyrrokkin_engine.ClientInterface

Define an interface used by nodes to communicate with clients

Methods

send_message(…message)

send a message to the client
Parameters:
Name Type Attributes Description
message * <repeatable>
consists of zero or more components
Source:

set_message_handler(handler)

set a function used to receive messages
Parameters:
Name Type Description
handler ClientInterface~messageReceivedCallback a function that will be called when a message from the client arrives
Source: