@Override public boolean isOpen() { return gWebSocket.isConnected(); }
@Override public GrizzlyFuture<DataFrame> send(byte[] data) { if (isConnected()) { return protocolHandler.send(data); } else { throw new RuntimeException("Socket is not connected."); } }
@Override public GrizzlyFuture<DataFrame> send(byte[] data) { if (isConnected()) { return protocolHandler.send(data); } else { throw new RuntimeException("Socket is not connected."); } }
@Override public GrizzlyFuture<DataFrame> send(String data) { if (isConnected()) { return protocolHandler.send(data); } else { throw new RuntimeException("Socket is not connected."); } }
private GrizzlyFuture<DataFrame> send(DataFrame frame) { if (isConnected()) { return protocolHandler.send(frame); } else { throw new RuntimeException("Socket is not connected."); } }
@Override public GrizzlyFuture<DataFrame> send(byte[] data) { if (isConnected()) { return protocolHandler.send(data); } else { throw new RuntimeException("Socket is not connected."); } }
private GrizzlyFuture<DataFrame> send(DataFrame frame) { if (isConnected()) { return protocolHandler.send(frame); } else { throw new RuntimeException("Socket is not connected."); } }
@Override public GrizzlyFuture<DataFrame> send(String data) { if (isConnected()) { return protocolHandler.send(data); } else { throw new RuntimeException("Socket is not connected."); } }
@Override public GrizzlyFuture<DataFrame> stream(boolean last, byte[] bytes, int off, int len) { if (isConnected()) { return protocolHandler.stream(last, bytes, off, len); } else { throw new RuntimeException("Socket is not connected."); } }
@Override public GrizzlyFuture<DataFrame> stream(boolean last, byte[] bytes, int off, int len) { if (isConnected()) { return protocolHandler.stream(last, bytes, off, len); } else { throw new RuntimeException("Socket is not connected."); } }
private GrizzlyFuture<DataFrame> send(DataFrame frame) { if (isConnected()) { return protocolHandler.send(frame); } else { throw new RuntimeException("Socket is not connected."); } }
@Override public GrizzlyFuture<DataFrame> stream(boolean last, byte[] bytes, int off, int len) { if (isConnected()) { return protocolHandler.stream(last, bytes, off, len); } else { throw new RuntimeException("Socket is not connected."); } }
@Override public GrizzlyFuture<DataFrame> send(byte[] data) { if (isConnected()) { return protocolHandler.send(data); } else { throw new RuntimeException("Socket is not connected."); } }
@Override public GrizzlyFuture<DataFrame> send(String data) { if (isConnected()) { return protocolHandler.send(data); } else { throw new RuntimeException("Socket is not connected."); } }
@Override public GrizzlyFuture<DataFrame> stream(boolean last, byte[] bytes, int off, int len) { if (isConnected()) { return protocolHandler.stream(last, bytes, off, len); } else { throw new RuntimeException("Socket is not connected."); } }
@Override public GrizzlyFuture<DataFrame> send(byte[] data) { if (isConnected()) { return protocolHandler.send(data); } else { throw new RuntimeException("Socket is not connected."); } }
private GrizzlyFuture<DataFrame> send(DataFrame frame) { if (isConnected()) { return protocolHandler.send(frame); } else { throw new RuntimeException("Socket is not connected."); } }
@Override public GrizzlyFuture<DataFrame> stream(boolean last, String fragment) { if (isConnected()) { return protocolHandler.stream(last, fragment); } else { throw new RuntimeException("Socket is not connected."); } }
@Override public GrizzlyFuture<DataFrame> send(String data) { if (isConnected()) { return protocolHandler.send(data); } else { throw new RuntimeException("Socket is not connected."); } }
@Override public GrizzlyFuture<DataFrame> stream(boolean last, String fragment) { if (isConnected()) { return protocolHandler.stream(last, fragment); } else { throw new RuntimeException("Socket is not connected."); } }