Skip to content

Commit 2392776

Browse files
committed
Minor corrections
1 parent 78cd3b0 commit 2392776

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎src/net/tootallnate/websocket/WebSocket.java‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/**
2626
* Represents one end (client or server) of a single WebSocket connection.
2727
* 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.
2929
*
3030
* This is an inner class, used by <tt>WebSocketClient</tt> and <tt>WebSocketServer</tt>, and should never need to be instantiated directly
3131
* 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 {
9393
* The {@link WebSocketListener} to notify of events when
9494
* they occur.
9595
*/
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 );
9898
}
9999

100-
public WebSocket( WebSocketListener listener , List<Draft> drafts , SocketChannel sockchannel ) {
100+
public WebSocket( WebSocketListener listener , List<Draft> drafts , SocketChannel socketChannel ) {
101101
init( listener, null, sockchannel );
102102
this.role = Role.SERVER;
103103
if( known_drafts == null || known_drafts.isEmpty() ) {

0 commit comments

Comments
 (0)