Tootsville.Gossip.createPacket

Function

Tootsville.Gossip.createPacket is a function with lambda list: (c, d, r)

Create and sign a packet.

c
Command to broadcast. This can be the string logOK, which is handled as a _cmd (in fact, it's the only remaining _cmd command); a string beginning with :, in which case the command will be a reply packet with from; or any other string, in which case it's treated as a c command.
d
Data for the command.
r
Optional recipient UUID (or default $World)

Automatically adds a for author, u for user, and s signature.

Returns a JSON string of the signed packet.