|
25 | 25 | /** |
26 | 26 | * Represents one end (client or server) of a single WebSocket connection. |
27 | 27 | * Takes care of the "handshake" phase, then allows for easy sending of |
28 | | - * text frames, and recieving frames through an event-based model. |
| 28 | + * text frames, and receiving frames through an event-based model. |
29 | 29 | * |
30 | 30 | * This is an inner class, used by <tt>WebSocketClient</tt> and <tt>WebSocketServer</tt>, and should never need to be instantiated directly |
31 | 31 | * by your code. However, instances are exposed in <tt>WebSocketServer</tt> through the <i>onClientOpen</i>, <i>onClientClose</i>, |
@@ -93,11 +93,11 @@ public enum Role { |
93 | 93 | * The {@link WebSocketListener} to notify of events when |
94 | 94 | * they occur. |
95 | 95 | */ |
96 | | - public WebSocket( WebSocketListener listener , Draft draft , SocketChannel sockchannel ) { |
97 | | - init( listener, draft, sockchannel ); |
| 96 | + public WebSocket( WebSocketListener listener , Draft draft , SocketChannel socketChannel ) { |
| 97 | + init( listener, draft, socketChannel ); |
98 | 98 | } |
99 | 99 |
|
100 | | - public WebSocket( WebSocketListener listener , List<Draft> drafts , SocketChannel sockchannel ) { |
| 100 | + public WebSocket( WebSocketListener listener , List<Draft> drafts , SocketChannel socketChannel ) { |
101 | 101 | init( listener, null, sockchannel ); |
102 | 102 | this.role = Role.SERVER; |
103 | 103 | if( known_drafts == null || known_drafts.isEmpty() ) { |
|
0 commit comments