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