Interface IncomingFrames
- All Known Subinterfaces:
CoreSession, Extension, FrameHandler
- All Known Implementing Classes:
AbstractExtension, CoreSession.Empty, ExtensionStack, JakartaWebSocketFrameHandler, JakartaWebSocketFrameHandler, JavaxWebSocketFrameHandler, JettyWebSocketFrameHandler, JettyWebSocketFrameHandler, JettyWebSocketFrameHandler, WebSocketCoreSession
public interface IncomingFrames
Interface for dealing with Incoming Frames.
-
Method Summary
-
Method Details
-
onFrame
Process the incoming frame.
Note: if you need to hang onto any information from the frame, be sure to copy it, as the information contained in the Frame will be released and/or reused by the implementation.
Failure of the callback will propagate the failure back to the
CoreSessionto fail the connection and attempt to send a closeFrameif one has not been sent.- Parameters:
frame- the frame to process.callback- the read completion.
-