Messaging
Trac Peers ship with their own chat/messaging infrastructure and messages can be handled by smart contract directly.
Last updated
Trac Peers ship with their own chat/messaging infrastructure and messages can be handled by smart contract directly.
Last updated
To enable messaging for your contract, the admin has to enble it first:
Once enabled, all connected peers may start to chat. Chat messages do not go through transactions but are directly sent to the contract:
User may change their nickname:
The messaging engine in Trac Peers provides the foundation to create rich, social applications and the capability to "contractualize" the message flow or enhancing the messaging system. This is extremely powerful, especially combined when creating App3 and Web3 apps.
Thinkable use-cases are AI agents for example, that chat in behalf of their owners to trade on some app.
See the options for more built-in settings.
As you can see, the message triggered the messageHandler() described in the section.