public final class WebSocketClientConnection extends WebSocketConnection
A WebSocket connection initiated by a client.
Modifier and Type | Method and Description |
---|---|
boolean |
isUsingAcknowledgements()
Indicates whether this connection uses acknowledgements, e.g. by means of stream management or BOSH acks.
|
java.util.concurrent.CompletableFuture<java.lang.Void> |
send(StreamElement streamElement)
Sends an element to the peer entity.
|
closeFuture, flush, getRemoteAddress, isSecure, open, toString, write
close, closeAsync, closeAsync, getConfiguration, getStreamId
public final java.util.concurrent.CompletableFuture<java.lang.Void> send(StreamElement streamElement)
Connection
send
in interface Connection
send
in class WebSocketConnection
streamElement
- The element.public final boolean isUsingAcknowledgements()
Connection
Indicates whether this connection uses acknowledgements, e.g. by means of stream management or BOSH acks.
isUsingAcknowledgements
in interface Connection
isUsingAcknowledgements
in class AbstractConnection
Copyright © 2014–2019 XMPP.rocks. All rights reserved.