Skip to main content
new AgentSocketServer<TState>(actor: object, opts: AgentSocketServerOptions<TState>): AgentSocketServer<TState>
Creates the socket server for one actor instance. Construct one per instance, usually as a field of the class, and delegate the class’s webSocket(ws, req) to attach.
Parameters Type Parameters