@Override
	public void send( ByteBuffer bytes ) {
		if( bytes == null )
			throw new IllegalArgumentException( "Cannot send 'null' data to a WebSocketImpl." );
		send( draft.createFrames( bytes, role == Role.CLIENT ) );
	}
@Override
	public void send( ByteBuffer bytes ) {
		if( bytes == null )
			throw new IllegalArgumentException( "Cannot send 'null' data to a WebSocketImpl." );
		send( draft.createFrames( bytes, role == Role.CLIENT ) );
	}
@ Override public void send ( ByteBuffer bytes ) { if ( bytes == null ) throw new IllegalArgumentException ( "Cannot send 'null' data to a WebSocketImpl." ) ; send ( draft . createFrames ( bytes , role == Role . CLIENT ) ) ; }
Send Binary data (plain bytes) to the other end.

@throws IllegalArgumentException the data is null
@throws WebsocketNotConnectedException websocket is not yet connected
Send Binary data ( plain bytes ) to the other end .