Skip to main content

Module client

Module client 

Source

Structs§

MIPClient
Async MIP protocol client with auto-reconnection support
MIPClientOptions
Configuration options for the MIP client
MIPMessage
Received message event

Enums§

MIPError
MIP Client errors

Functions§

create_client
Create a new MIP client with default options
get_frame_type_name
Get the name of a frame type

Type Aliases§

MIPResult
Result type for MIP operations
OnAck
Callback invoked when an ACK is received (receives message ID)
OnConnect
Callback invoked when connected to the server
OnDisconnect
Callback invoked when disconnected from the server
OnError
Callback invoked on error
OnEvent
Callback invoked when an event frame is received
OnFrame
Callback invoked for every raw frame (receives header and payload)
OnMessage
Callback invoked when a message is received
OnPong
Callback invoked when a PONG is received
OnReconnecting
Callback invoked on reconnection attempt (receives attempt number)