A consumer of WebSocket data frames (either BINARY or TEXT).
FrameHandler delegates the processing of data frames
to MessageSink, including the processing of the demand
for the next frames.
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public default void |
| accept | back to summary |
|---|---|
| public void accept(Frame frame, Callback callback) Consumes the WebSocket frame, possibly asynchronously when this method has returned. The callback argument must be completed when the frame payload is consumed. The demand for more frames must be explicitly invoked,
or arranged to be invoked asynchronously, by the implementation
of this method, by calling | |
| fail | back to summary |
|---|---|
| public default void fail(Throwable failure) Fails this
| |