Skip to content

Commit 071f051

Browse files
committed
made ws server write operations truly asynchronous
separated WebSocket interface and implementation introduced WebSocketFactory to allow users to better customize their websockets
1 parent 49b5500 commit 071f051

File tree

8 files changed

+802
-619
lines changed

8 files changed

+802
-619
lines changed

example/ChatClient.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ public void onMessage( String message ) {
110110
public void onOpen( ServerHandshake handshake ) {
111111
ta.append( "You are connected to ChatServer: " + getURI() + "\n" );
112112
ta.setCaretPosition( ta.getDocument().getLength() );
113-
send( "\0" );
114113
}
115114

116115
@Override

example/ChatServer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public ChatServer( InetSocketAddress address ) {
2626
@Override
2727
public void onOpen( WebSocket conn, ClientHandshake handshake ) {
2828
try {
29-
this.sendToAll( "\0" );
29+
this.sendToAll( "new connection" );
3030
} catch ( InterruptedException ex ) {
3131
ex.printStackTrace();
3232
}

0 commit comments

Comments
 (0)