Package javax.websocket.RemoteEndpoint

Examples of javax.websocket.RemoteEndpoint.Async


   */
  @Override
  public void send(final URI receiverUri, final byte[] message,
      final String tag) throws IOException {
    if (remotes.containsKey(receiverUri)) {
      final Async remote = remotes.get(receiverUri);
      remote.sendBinary(ByteBuffer.wrap(message));
      remote.flushBatch();
    } else {
      throw new IOException("Remote: " + receiverUri.toASCIIString()
          + " is currently not connected.");
    }
  }
View Full Code Here

TOP

Related Classes of javax.websocket.RemoteEndpoint.Async

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.