public final class WebsocketDuplexConnection
extends io.rsocket.internal.BaseDuplexConnection
DuplexConnection that connects via a Websocket.
rsocket-java strongly assumes that each ByteBuf is encoded with the length. This is not true for message oriented transports so this must be specifically dropped from Frames sent and stitched back on for frames received.
Disposable.Composite, Disposable.Swap| Constructor and Description |
|---|
WebsocketDuplexConnection(reactor.netty.Connection connection)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
ByteBufAllocator |
alloc() |
protected void |
doOnClose() |
Mono<Void> |
onClose() |
Flux<ByteBuf> |
receive() |
SocketAddress |
remoteAddress() |
void |
sendErrorAndClose(io.rsocket.RSocketErrorException e) |
dispose, isDisposed, sendFramepublic WebsocketDuplexConnection(reactor.netty.Connection connection)
connection - the Connection to for managing the serverpublic ByteBufAllocator alloc()
public SocketAddress remoteAddress()
protected void doOnClose()
doOnClose in class io.rsocket.internal.BaseDuplexConnectionpublic Mono<Void> onClose()
onClose in interface io.rsocket.CloseableonClose in class io.rsocket.internal.BaseDuplexConnectionpublic void sendErrorAndClose(io.rsocket.RSocketErrorException e)