Exemplo n.º 1
0
 /** {@inheritDoc} */
 @Override
 public void write(byte[] data, int offset, int length) throws IOException {
   if (!outbound.isOpen()) throw new IOException("Connection remotely closed");
   logger.trace("WebSocket.write()");
   outbound.sendMessage(frame, data, offset, length);
 }
Exemplo n.º 2
0
 /** {@inheritDoc} */
 @Override
 public void close() throws IOException {
   outbound.disconnect();
 }
Exemplo n.º 3
0
 /** {@inheritDoc} */
 @Override
 public void write(String data) throws IOException {
   if (!outbound.isOpen()) throw new IOException("Connection remotely closed");
   logger.trace("WebSocket.write()");
   outbound.sendMessage(frame, data);
 }