restaurant_local_server library

A generic Flutter package for building local server applications with UDP discovery, HTTP REST APIs, WebSocket support, and real-time synchronization capabilities.

Classes

ClientInfo
Client information and statistics.
CrudRouteHandler
Generic CRUD route handler base class
DiscoveryConfig
Configuration options for the discovery service.
HttpServerConfig
Configuration options for the HTTP server
HttpUtils
Utility functions for common HTTP operations
LocalHttpServer
Generic HTTP server with extensible architecture
LocalServerConfig
Configuration for the LocalServerManager
LocalServerEventHandlers
Event callbacks for server lifecycle and operations
LocalServerManager
Generic, reusable local server manager for orchestrating HTTP, WebSocket, and Discovery services
NetworkDiscoveryService
Network discovery service for UDP-based server discovery and broadcasting.
RouteHandler
Handler for HTTP route operations
ServerInfo
Generic server information model for network discovery and connection.
ServerStatistics
Comprehensive server statistics
ServiceHealth
Service health information
WebSocketMessage
Generic WebSocket message for real-time communication.
WebSocketNotifier
WebSocket notification interface for HTTP operations
WebSocketServer
A generic, reusable WebSocket server for real-time communication.
WebSocketServerConfig
Configuration options for the WebSocket server.
WebSocketServerEventHandlers
Event handler callbacks for WebSocket server events.

Enums

LocalServerStatus
Server lifecycle states
ServerHealthStatus
Server health status
WebSocketMessageType
Generic WebSocket message types for real-time communication.