// The server surface, reachable as `@amatiasq/socket/server`. Two layers, each // with a `…Server` that accepts sockets and a `…Connection` that is one client: // // JsonServer / JsonConnection typed JSON, no state between sockets // SessionServer / SessionConnection typed messages, and a session that // survives the client reconnecting // // Neither server listens on anything — you bring the socket, wrapped in a // `SocketTransport`. That is why this package has no `ws` dependency and runs on // Node, Bun, Deno and Cloudflare Workers alike. export * from './internals/ClientId.js'; export * from './internals/JsonConnection.js'; export * from './internals/JsonServer.js'; export * from './internals/SessionConnection.js'; export * from './internals/SessionServer.js'; export * from './Message.js'; export * from './transport.js';