public class WebsocketDuplexConnection extends Object implements io.rsocket.DuplexConnection
rsocket-java strongly assumes that each Frame 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.ipc.netty.NettyInbound in,
reactor.ipc.netty.NettyOutbound out,
reactor.ipc.netty.NettyContext context) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
boolean |
isDisposed() |
Mono<Void> |
onClose() |
Flux<io.rsocket.Frame> |
receive() |
Mono<Void> |
send(org.reactivestreams.Publisher<io.rsocket.Frame> frames) |
Mono<Void> |
sendOne(io.rsocket.Frame frame) |
public WebsocketDuplexConnection(reactor.ipc.netty.NettyInbound in,
reactor.ipc.netty.NettyOutbound out,
reactor.ipc.netty.NettyContext context)
public Mono<Void> send(org.reactivestreams.Publisher<io.rsocket.Frame> frames)
send in interface io.rsocket.DuplexConnectionpublic Mono<Void> sendOne(io.rsocket.Frame frame)
sendOne in interface io.rsocket.DuplexConnectionpublic Flux<io.rsocket.Frame> receive()
receive in interface io.rsocket.DuplexConnectionpublic void dispose()
dispose in interface Disposablepublic boolean isDisposed()
isDisposed in interface Disposable