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