Skip to content

Commit 9f9f86e

Browse files
committed
-completed draft 10 client side implementation
1 parent 0298ade commit 9f9f86e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/net/tootallnate/websocket/WebSocket.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -349,11 +349,11 @@ public SocketChannel socketChannel() {
349349
return this.socketChannel;
350350
}
351351

352-
public void startHandshake( Handshakedata handshakedata ){
353-
if( handshakeComplete )
354-
throw new IllegalStateException ( "Handshake has allready been sent." );
355-
this.handshakerequest = handshakedata;
356-
352+
public void startHandshake( HandshakeBuilder handshakedata ) throws IOException{
353+
if( handshakeComplete )
354+
throw new IllegalStateException ( "Handshake has allready been sent." );
355+
this.handshakerequest = handshakedata;
356+
channelWrite( draft.createHandshake( draft.postProcessHandshakeRequestAsClient( handshakedata ) , role ) );
357357
}
358358

359359
private void channelWrite(ByteBuffer buf) throws IOException{

0 commit comments

Comments
 (0)