Chatter:
Filter:
Classes (extension) | Relay classes

Chatter : Object
ExtensionExtension

Text chat for Utopia Peers
Source: NMLChat.sc

Description

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

Class Methods

Chatter.new(addrBook, post: true, oscPath: '/chat', encryptor)

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

Inherited class methods

Instance Methods

.post

.post = value

when true, Chatter prints received messages to the post window

Returns:

a Boolean

.send(chat)

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

Arguments:

chat

a String containing the message

.sendPrivate(name, chat)

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.

Inherited instance methods

Examples