Chatter:
Filter:
Utopia/Classes (extension) | Relay classes

Chatter
ExtensionExtension

Text chat for Utopia Peers

Description

Chatter provides a simple text chat interface for Peers in Utopia. It provides support for private and public (group wide) messaging.

Class Methods

.new

create a new Chatter

Arguments:

addrBook

an AddrBook where Peers are registered

post

A Boolean indicating whether receieved chat messages are printed in the post window.

oscPath

the oscPath to use for relaying

encryptor

an (optional) encryptor for chat messages

Returns:

a new Chatter

Instance Methods

.post

when true, Chatter prints received messages to the post window

Returns:

a Boolean

.send

Send a message to all Peers in this Chatter's AddrBook

Arguments:

chat

a String containing the message

.sendPrivate

Send a message to one Peer in this Chatter's AddrBook

Arguments:

name

The name of the Peer to send to.

chat

a String containing the message

.free

remove the Chatter by freeing its oscFunc.

Examples