MessageHandler (WebSocket 2.1 API Documentation - Apache Tomcat 10.1.57)
Description: declaration: package: jakarta.websocket, interface: MessageHandler

# Interface MessageHandler

All Known Subinterfaces:
  `MessageHandler.Partial<T>, MessageHandler.Whole<T>`

public interface MessageHandler
Base interface for WebSocket message handlers. Use `MessageHandler.Whole` for handling complete messages and `MessageHandler.Partial` for handling messages that may arrive in fragments.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Interface
  Description
  `static interface`
  `MessageHandler.Partial<T>`
  A message handler that receives partial (fragmented) messages.
  `static interface`
  `MessageHandler.Whole<T>`
  A message handler that receives whole (complete) messages.