/[projects]/miscJava/Test3/src/dk/thoerup/websocket/AnnotatedSocket.java
ViewVC logotype

Diff of /miscJava/Test3/src/dk/thoerup/websocket/AnnotatedSocket.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2116 by torben, Tue Feb 11 12:54:19 2014 UTC revision 2117 by torben, Tue Feb 11 16:29:10 2014 UTC
# Line 26  public class AnnotatedSocket { Line 26  public class AnnotatedSocket {
26          public void open(Session session, EndpointConfig conf) {          public void open(Session session, EndpointConfig conf) {
27                  String guestNick = "Guest-" + rand.nextInt();                  String guestNick = "Guest-" + rand.nextInt();
28                                    
29                  broadcastMessage(guestNick + " has joined the chat");                  broadcastMessage( "*** " + guestNick + " has joined the chat");
30                  try {                  try {
31                          session.getBasicRemote().sendText( "Welcome " + guestNick);                          session.getBasicRemote().sendText( "Welcome " + guestNick);
32                          StringBuilder sb = new StringBuilder();                          StringBuilder sb = new StringBuilder();

Legend:
Removed from v.2116  
changed lines
  Added in v.2117

  ViewVC Help
Powered by ViewVC 1.1.20