Esempio 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);
 }
Esempio n. 2
0
 /** {@inheritDoc} */
 @Override
 public void close() throws IOException {
   outbound.disconnect();
 }
Esempio 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);
 }