File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/net/tootallnate/websocket Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 {
You can’t perform that action at this time.
0 commit comments