Overview
socket-serve provides a clean, type-safe API for building real-time applications in serverless environments. The API is divided into three main parts:Server API
Server-side socket management and event handling
Client API
Browser client SDK for connecting to socket servers
Types
TypeScript type definitions and interfaces
Quick Reference
Server
Client
Core Concepts
Event-Driven
Both server and client use an event-driven architecture:Acknowledgments
Request/response pattern with callbacks:Rooms
Group clients for targeted broadcasting:Navigation
Socket Server
Main server class and configuration
Server Socket
Individual client socket on the server
Adapters
Framework integration adapters
Client Connection
Connecting from the browser
Socket Methods
Client socket methods and properties
Events
Built-in and custom events