TransJam Collaboration Server

TransJam Client Programming Tutorial

Home Documentation Chat Demo WebDrum

Sending Information To Other Clients

One of the key features of the Transjam server is that it can be used to send information between clients. The information could be chat messages, drawings, game moves, musical gestures, etc.

There are three primary methods for sending messages to other clients.

 public void sendAll( String msg )  throws IOException;
Send a text message to all of the clients in the same room including the sender.
 public void sendOthers( String msg )  throws IOException;
Send a text message to all of the clients in the same room except the sender.
 public void sendUser( int targetUserID, String msg )  throws IOException;
Send a text message to a specific user.
Note that the message is just a String. It is up to the application to encode meaningful information in the string.

[Previous] [Top] [Next]

(C) 2002 SoftSynth.com