# 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.