We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14d5379 commit e5573fdCopy full SHA for e5573fd
2 files changed
example/ChatClient.java
@@ -1,4 +1,3 @@
1
-
2
import java.awt.Container;
3
import java.awt.GridLayout;
4
import java.awt.event.ActionEvent;
@@ -13,6 +12,8 @@
13
12
import javax.swing.JTextArea;
14
import javax.swing.JTextField;
15
+import net.tootallnate.websocket.WebSocketClient;
16
+
17
/**
18
* A barebones chat client that uses the WebSocket protocol.
19
*/
example/ChatServer.java
@@ -1,13 +1,15 @@
import java.io.IOException;
+import net.tootallnate.websocket.WebSocket;
+import net.tootallnate.websocket.WebSocketServer;
5
6
7
* A simple WebSocketServer implementation. Keeps track of a "chatroom".
8
9
public class ChatServer extends WebSocketServer {
10
11
public ChatServer(int port) {
- super(port,Draft.AUTO);
+ super(port, Draft.AUTO);
}
public void onClientOpen(WebSocket conn) {
0 commit comments