Skip to content

Commit 887ccc5

Browse files
committed
Whoops, WebSocketClients can't use WebSocketDraft.AUTO!
1 parent 4b2afeb commit 887ccc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/ChatClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ public void actionPerformed(ActionEvent e) {
115115
connect.setEnabled(false);
116116
uriField.setEditable(false);
117117
try {
118-
cc = new ChatClient(new URI(uriField.getText()), area, WebSocketDraft.AUTO);
118+
cc = new ChatClient(new URI(uriField.getText()), area, WebSocketDraft.DRAFT76);
119119
cc.connect();
120120
} catch (URISyntaxException ex) {
121121
area.append(uriField.getText() + " is not a valid WebSocket URI\n");

0 commit comments

Comments
 (0)