File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1-
21import java .awt .Container ;
32import java .awt .GridLayout ;
43import java .awt .event .ActionEvent ;
1312import javax .swing .JTextArea ;
1413import javax .swing .JTextField ;
1514
15+ import net .tootallnate .websocket .WebSocketClient ;
16+
1617/**
1718 * A barebones chat client that uses the WebSocket protocol.
1819 */
Original file line number Diff line number Diff line change 1-
21import java .io .IOException ;
32
3+ import net .tootallnate .websocket .WebSocket ;
4+ import net .tootallnate .websocket .WebSocketServer ;
5+
46/**
57 * A simple WebSocketServer implementation. Keeps track of a "chatroom".
68 */
79public class ChatServer extends WebSocketServer {
810
911 public ChatServer (int port ) {
10- super (port ,Draft .AUTO );
12+ super (port , Draft .AUTO );
1113 }
1214
1315 public void onClientOpen (WebSocket conn ) {
You can’t perform that action at this time.
0 commit comments