(db: Database, options: ServerOptions = {})
| 308 | // back the object to mount on each connection via |
| 309 | // acceptWebSocketSession(). |
| 310 | export function createSyncServer(db: Database, options: ServerOptions = {}): SyncRPC { |
| 311 | return new SyncRPCServer(db, { |
| 312 | ignore: options.ignore ?? [], |
| 313 | afterApply: options.afterApply, |
| 314 | beforeFetch: options.beforeFetch, |
| 315 | }); |
| 316 | } |
| 317 | |
| 318 | // Construct a ShellRPC bound to a Runner. computerd holds the only |
| 319 | // Runner today; tests can pass a fake that implements RunnerLike. |
no outgoing calls