WebsockexAdapter.MessageHandler (WebsockexAdapter v0.1.1)
View SourceMessage handling utilities for WebSocket connections.
- Parse incoming WebSocket frames and Gun messages
- Route messages to user-provided handler functions
- Handle control frames (ping/pong) automatically
- Process WebSocket upgrade responses
Summary
Functions
Create a callback function for handling specific message types.
Default message handler that simply logs messages.
Handle WebSocket control frames automatically. Returns :handled for control frames, :not_control for data frames.
Handle incoming Gun messages and WebSocket frames. Routes messages to appropriate handler function.
Functions
Create a callback function for handling specific message types.
Default message handler that simply logs messages.
Handle WebSocket control frames automatically. Returns :handled for control frames, :not_control for data frames.
Handle incoming Gun messages and WebSocket frames. Routes messages to appropriate handler function.