{"id":18062968,"url":"https://github.com/stagas/alice-bob","last_synced_at":"2025-10-28T09:15:10.954Z","repository":{"id":57176081,"uuid":"425593605","full_name":"stagas/alice-bob","owner":"stagas","description":"transport agnostic strongly typed duplex rpc interfaces","archived":false,"fork":false,"pushed_at":"2022-07-30T15:05:58.000Z","size":1320,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-16T09:36:12.363Z","etag":null,"topics":["duplex","ipc","message-passing","networking","remote-procedure-calls","rpc","strongly-typed","transport-agnostic"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stagas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-07T19:13:44.000Z","updated_at":"2024-04-25T22:01:47.000Z","dependencies_parsed_at":"2022-09-03T23:32:02.881Z","dependency_job_id":null,"html_url":"https://github.com/stagas/alice-bob","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/stagas/alice-bob","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stagas%2Falice-bob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stagas%2Falice-bob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stagas%2Falice-bob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stagas%2Falice-bob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stagas","download_url":"https://codeload.github.com/stagas/alice-bob/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stagas%2Falice-bob/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281412866,"owners_count":26496815,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-28T02:00:06.022Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["duplex","ipc","message-passing","networking","remote-procedure-calls","rpc","strongly-typed","transport-agnostic"],"created_at":"2024-10-31T05:09:00.720Z","updated_at":"2025-10-28T09:15:10.908Z","avatar_url":"https://github.com/stagas.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003e\nalice-bob \u003ca href=\"https://npmjs.org/package/alice-bob\"\u003e\u003cimg src=\"https://img.shields.io/badge/npm-v2.0.0-F00.svg?colorA=000\"/\u003e\u003c/a\u003e \u003ca href=\"src\"\u003e\u003cimg src=\"https://img.shields.io/badge/loc-162-FFF.svg?colorA=000\"/\u003e\u003c/a\u003e \u003ca href=\"https://cdn.jsdelivr.net/npm/alice-bob@2.0.0/dist/alice-bob.min.js\"\u003e\u003cimg src=\"https://img.shields.io/badge/brotli-828b-333.svg?colorA=000\"/\u003e\u003c/a\u003e \u003ca href=\"LICENSE\"\u003e\u003cimg src=\"https://img.shields.io/badge/license-MIT-F0B.svg?colorA=000\"/\u003e\u003c/a\u003e\n\u003c/h1\u003e\n\n\u003cp\u003e\u003c/p\u003e\n\ntransport agnostic strongly typed duplex rpc interfaces\n\n\u003ch4\u003e\n\u003ctable\u003e\u003ctr\u003e\u003ctd title=\"Triple click to select and copy paste\"\u003e\n\u003ccode\u003enpm i alice-bob \u003c/code\u003e\n\u003c/td\u003e\u003ctd title=\"Triple click to select and copy paste\"\u003e\n\u003ccode\u003epnpm add alice-bob \u003c/code\u003e\n\u003c/td\u003e\u003ctd title=\"Triple click to select and copy paste\"\u003e\n\u003ccode\u003eyarn add alice-bob\u003c/code\u003e\n\u003c/td\u003e\u003c/tr\u003e\u003c/table\u003e\n\u003c/h4\u003e\n\n## API\n\n\u003cp\u003e  \u003cdetails id=\"Alice$114\" title=\"Class\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#Alice$114\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eAlice\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; Alice class.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L292\"\u003esrc/alice-bob.ts#L292\u003c/a\u003e  \u003cul\u003e        \u003cp\u003e  \u003cdetails id=\"constructor$115\" title=\"Constructor\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#constructor$115\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003econstructor\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(send, target)\u003c/em\u003e     \u0026ndash; Creates an instance of Alice.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L297\"\u003esrc/alice-bob.ts#L297\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e  \u003cdetails id=\"new Alice$116\" title=\"ConstructorSignature\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#new Alice$116\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003enew Alice\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e()\u003c/em\u003e     \u0026ndash; Creates an instance of Alice.\u003c/summary\u003e    \u003cul\u003e\u003cp\u003e\u003ca href=\"#Alice$114\"\u003eAlice\u003c/a\u003e\u0026lt;\u003ca href=\"#A$117\"\u003eA\u003c/a\u003e, \u003ca href=\"#B$118\"\u003eB\u003c/a\u003e\u0026gt;\u003c/p\u003e      \u003cp\u003e  \u003cdetails id=\"send$119\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#send$119\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003esend\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003e\u003ca href=\"#PayloadMethod$6\"\u003ePayloadMethod\u003c/a\u003e\u0026lt;\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#A$117\"\u003eA\u003c/a\u003e, \u003ca href=\"#B$118\"\u003eB\u003c/a\u003e\u0026gt;\u0026gt;\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"target$120\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#target$120\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003etarget\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003e\u003ca href=\"#A$117\"\u003eA\u003c/a\u003e\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e  \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"local$121\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#local$121\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003elocal\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; The local Agent.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L95\"\u003esrc/alice-bob.ts#L95\u003c/a\u003e  \u003cul\u003e\u003cp\u003e{\u003cp\u003e  \u003cdetails id=\"debug$123\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#debug$123\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edebug\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; Whether or not to log debugging information.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L32\"\u003esrc/alice-bob.ts#L32\u003c/a\u003e  \u003cul\u003e\u003cp\u003eboolean\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"name$124\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#name$124\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003ename\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; The name of the agent. Defaults to either 'alice' or 'bob' depending\non the constructor used, Alice or Bob.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L38\"\u003esrc/alice-bob.ts#L38\u003c/a\u003e  \u003cul\u003e\u003cp\u003estring\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"send$125\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#send$125\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003esend\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; The send method overriden by the user to any transport.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L43\"\u003esrc/alice-bob.ts#L43\u003c/a\u003e  \u003cul\u003e\u003cp\u003e\u003ca href=\"#PayloadMethod$6\"\u003ePayloadMethod\u003c/a\u003e\u0026lt;\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#B$118\"\u003eB\u003c/a\u003e, \u003ca href=\"#A$117\"\u003eA\u003c/a\u003e\u0026gt;\u0026gt;\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"deferredSend$126\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#deferredSend$126\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edeferredSend\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e()\u003c/em\u003e     \u0026ndash; Returns the send method. Used in contexts where it might\nchange between sessions, like browser refresh/hot/livereload.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L49\"\u003esrc/alice-bob.ts#L49\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e      \u003cp\u003e\u003cstrong\u003edeferredSend\u003c/strong\u003e\u003cem\u003e()\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003e\u003ca href=\"#PayloadMethod$6\"\u003ePayloadMethod\u003c/a\u003e\u0026lt;\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#B$37\"\u003eB\u003c/a\u003e, \u003ca href=\"#A$36\"\u003eA\u003c/a\u003e\u0026gt;\u0026gt;\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"deserializer$132\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#deserializer$132\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edeserializer\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(data)\u003c/em\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L57\"\u003esrc/alice-bob.ts#L57\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"data$134\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#data$134\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edata\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eunknown\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003edeserializer\u003c/strong\u003e\u003cem\u003e(data)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003eany\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"log$135\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#log$135\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003elog\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(args)\u003c/em\u003e     \u0026ndash; Overridable logging function. Defaults to \u003ccode\u003econsole.log()\u003c/code\u003e and prepends \u003ccode\u003eagent.name\u003c/code\u003e.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L63\"\u003esrc/alice-bob.ts#L63\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"args$137\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#args$137\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eargs\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eunknown  []\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003elog\u003c/strong\u003e\u003cem\u003e(args)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003evoid\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"serializer$129\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#serializer$129\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eserializer\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(data)\u003c/em\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L56\"\u003esrc/alice-bob.ts#L56\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"data$131\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#data$131\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edata\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eunknown\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003eserializer\u003c/strong\u003e\u003cem\u003e(data)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003eany\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e} \u0026amp; \u003ca href=\"#A$117\"\u003eA\u003c/a\u003e \u0026amp; {\u003cp\u003e  \u003cdetails id=\"target$147\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#target$147\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003etarget\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L95\"\u003esrc/alice-bob.ts#L95\u003c/a\u003e  \u003cul\u003e\u003cp\u003e\u003ca href=\"#A$117\"\u003eA\u003c/a\u003e\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e}\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"remote$148\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#remote$148\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eremote\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; The remote Agent.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L99\"\u003esrc/alice-bob.ts#L99\u003c/a\u003e  \u003cul\u003e\u003cp\u003e\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#B$118\"\u003eB\u003c/a\u003e, \u003ca href=\"#A$117\"\u003eA\u003c/a\u003e\u0026gt;\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"agents$155\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#agents$155\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eagents\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(local, remote)\u003c/em\u003e     \u0026ndash; Returns the agents tuple \u003ccode\u003e[alice, bob]\u003c/code\u003e.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L276\"\u003esrc/alice-bob.ts#L276\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e  \u003cp\u003e\n\nExample:\n\n```ts\nconst [alice, bob] = new Alice\u003cLocal, Remote\u003e().agents()\n\n// to enable debugging on local (alice)\nconst [alice, bob] = new Alice\u003cLocal, Remote\u003e().agents({ debug: true })\n\n// use different names:\nconst [alice, bob] = new Alice\u003cLocal, Remote\u003e().agents(\n  { name: 'server', debug: true },\n  { name: 'client' }\n)\n```\n\n\u003c/p\u003e\n  \u003cdetails id=\"local$157\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#local$157\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003elocal\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003e\u003ccode\u003enull\u003c/code\u003e | \u003cspan\u003ePartial\u003c/span\u003e\u0026lt;\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#A$117\"\u003eA\u003c/a\u003e, \u003ca href=\"#B$118\"\u003eB\u003c/a\u003e\u0026gt;\u0026gt;\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"remote$158\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#remote$158\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eremote\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003e\u003ccode\u003enull\u003c/code\u003e | \u003cspan\u003ePartial\u003c/span\u003e\u0026lt;\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#B$118\"\u003eB\u003c/a\u003e, \u003ca href=\"#A$117\"\u003eA\u003c/a\u003e\u0026gt;\u0026gt;\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003eagents\u003c/strong\u003e\u003cem\u003e(local, remote)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003e[  {\u003cp\u003e  \u003cdetails id=\"debug$160\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#debug$160\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edebug\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; Whether or not to log debugging information.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L32\"\u003esrc/alice-bob.ts#L32\u003c/a\u003e  \u003cul\u003e\u003cp\u003eboolean\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"name$161\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#name$161\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003ename\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; The name of the agent. Defaults to either 'alice' or 'bob' depending\non the constructor used, Alice or Bob.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L38\"\u003esrc/alice-bob.ts#L38\u003c/a\u003e  \u003cul\u003e\u003cp\u003estring\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"send$162\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#send$162\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003esend\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; The send method overriden by the user to any transport.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L43\"\u003esrc/alice-bob.ts#L43\u003c/a\u003e  \u003cul\u003e\u003cp\u003e\u003ca href=\"#PayloadMethod$6\"\u003ePayloadMethod\u003c/a\u003e\u0026lt;\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#B$118\"\u003eB\u003c/a\u003e, \u003ca href=\"#A$117\"\u003eA\u003c/a\u003e\u0026gt;\u0026gt;\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"deferredSend$163\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#deferredSend$163\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edeferredSend\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e()\u003c/em\u003e     \u0026ndash; Returns the send method. Used in contexts where it might\nchange between sessions, like browser refresh/hot/livereload.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L49\"\u003esrc/alice-bob.ts#L49\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e      \u003cp\u003e\u003cstrong\u003edeferredSend\u003c/strong\u003e\u003cem\u003e()\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003e\u003ca href=\"#PayloadMethod$6\"\u003ePayloadMethod\u003c/a\u003e\u0026lt;\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#B$37\"\u003eB\u003c/a\u003e, \u003ca href=\"#A$36\"\u003eA\u003c/a\u003e\u0026gt;\u0026gt;\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"deserializer$169\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#deserializer$169\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edeserializer\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(data)\u003c/em\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L57\"\u003esrc/alice-bob.ts#L57\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"data$171\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#data$171\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edata\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eunknown\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003edeserializer\u003c/strong\u003e\u003cem\u003e(data)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003eany\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"log$172\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#log$172\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003elog\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(args)\u003c/em\u003e     \u0026ndash; Overridable logging function. Defaults to \u003ccode\u003econsole.log()\u003c/code\u003e and prepends \u003ccode\u003eagent.name\u003c/code\u003e.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L63\"\u003esrc/alice-bob.ts#L63\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"args$174\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#args$174\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eargs\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eunknown  []\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003elog\u003c/strong\u003e\u003cem\u003e(args)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003evoid\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"serializer$166\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#serializer$166\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eserializer\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(data)\u003c/em\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L56\"\u003esrc/alice-bob.ts#L56\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"data$168\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#data$168\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edata\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eunknown\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003eserializer\u003c/strong\u003e\u003cem\u003e(data)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003eany\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e} \u0026amp; \u003ca href=\"#A$117\"\u003eA\u003c/a\u003e \u0026amp; {\u003cp\u003e  \u003cdetails id=\"target$184\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#target$184\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003etarget\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L95\"\u003esrc/alice-bob.ts#L95\u003c/a\u003e  \u003cul\u003e\u003cp\u003e\u003ca href=\"#A$117\"\u003eA\u003c/a\u003e\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e}, \u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#B$118\"\u003eB\u003c/a\u003e, \u003ca href=\"#A$117\"\u003eA\u003c/a\u003e\u0026gt;  ]\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"deserializer$152\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#deserializer$152\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edeserializer\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(data)\u003c/em\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L108\"\u003esrc/alice-bob.ts#L108\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"data$154\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#data$154\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edata\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eany\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003edeserializer\u003c/strong\u003e\u003cem\u003e(data)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003eany\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"serializer$149\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#serializer$149\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eserializer\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(data)\u003c/em\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L107\"\u003esrc/alice-bob.ts#L107\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"data$151\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#data$151\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edata\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eany\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003eserializer\u003c/strong\u003e\u003cem\u003e(data)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003eany\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e\u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"AliceBob$38\" title=\"Class\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#AliceBob$38\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eAliceBob\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; AliceBob class.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L82\"\u003esrc/alice-bob.ts#L82\u003c/a\u003e  \u003cul\u003e        \u003cp\u003e  \u003cdetails id=\"constructor$39\" title=\"Constructor\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#constructor$39\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003econstructor\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(send)\u003c/em\u003e     \u0026ndash; Creates an instance of AliceBob.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L114\"\u003esrc/alice-bob.ts#L114\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e  \u003cdetails id=\"new AliceBob$40\" title=\"ConstructorSignature\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#new AliceBob$40\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003enew AliceBob\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e()\u003c/em\u003e     \u0026ndash; Creates an instance of AliceBob.\u003c/summary\u003e    \u003cul\u003e\u003cp\u003e\u003ca href=\"#AliceBob$38\"\u003eAliceBob\u003c/a\u003e\u0026lt;\u003ca href=\"#A$41\"\u003eA\u003c/a\u003e, \u003ca href=\"#B$42\"\u003eB\u003c/a\u003e\u0026gt;\u003c/p\u003e      \u003cp\u003e  \u003cdetails id=\"send$43\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#send$43\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003esend\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003e\u003ca href=\"#PayloadMethod$6\"\u003ePayloadMethod\u003c/a\u003e\u0026lt;\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#A$41\"\u003eA\u003c/a\u003e, \u003ca href=\"#B$42\"\u003eB\u003c/a\u003e\u0026gt;\u0026gt;\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e  \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"local$46\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#local$46\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003elocal\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; The local Agent.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L95\"\u003esrc/alice-bob.ts#L95\u003c/a\u003e  \u003cul\u003e\u003cp\u003e{\u003cp\u003e  \u003cdetails id=\"debug$48\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#debug$48\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edebug\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; Whether or not to log debugging information.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L32\"\u003esrc/alice-bob.ts#L32\u003c/a\u003e  \u003cul\u003e\u003cp\u003eboolean\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"name$49\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#name$49\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003ename\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; The name of the agent. Defaults to either 'alice' or 'bob' depending\non the constructor used, Alice or Bob.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L38\"\u003esrc/alice-bob.ts#L38\u003c/a\u003e  \u003cul\u003e\u003cp\u003estring\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"send$50\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#send$50\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003esend\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; The send method overriden by the user to any transport.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L43\"\u003esrc/alice-bob.ts#L43\u003c/a\u003e  \u003cul\u003e\u003cp\u003e\u003ca href=\"#PayloadMethod$6\"\u003ePayloadMethod\u003c/a\u003e\u0026lt;\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#B$42\"\u003eB\u003c/a\u003e, \u003ca href=\"#A$41\"\u003eA\u003c/a\u003e\u0026gt;\u0026gt;\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"deferredSend$51\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#deferredSend$51\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edeferredSend\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e()\u003c/em\u003e     \u0026ndash; Returns the send method. Used in contexts where it might\nchange between sessions, like browser refresh/hot/livereload.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L49\"\u003esrc/alice-bob.ts#L49\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e      \u003cp\u003e\u003cstrong\u003edeferredSend\u003c/strong\u003e\u003cem\u003e()\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003e\u003ca href=\"#PayloadMethod$6\"\u003ePayloadMethod\u003c/a\u003e\u0026lt;\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#B$37\"\u003eB\u003c/a\u003e, \u003ca href=\"#A$36\"\u003eA\u003c/a\u003e\u0026gt;\u0026gt;\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"deserializer$57\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#deserializer$57\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edeserializer\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(data)\u003c/em\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L57\"\u003esrc/alice-bob.ts#L57\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"data$59\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#data$59\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edata\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eunknown\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003edeserializer\u003c/strong\u003e\u003cem\u003e(data)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003eany\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"log$60\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#log$60\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003elog\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(args)\u003c/em\u003e     \u0026ndash; Overridable logging function. Defaults to \u003ccode\u003econsole.log()\u003c/code\u003e and prepends \u003ccode\u003eagent.name\u003c/code\u003e.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L63\"\u003esrc/alice-bob.ts#L63\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"args$62\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#args$62\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eargs\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eunknown  []\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003elog\u003c/strong\u003e\u003cem\u003e(args)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003evoid\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"serializer$54\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#serializer$54\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eserializer\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(data)\u003c/em\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L56\"\u003esrc/alice-bob.ts#L56\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"data$56\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#data$56\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edata\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eunknown\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003eserializer\u003c/strong\u003e\u003cem\u003e(data)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003eany\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e} \u0026amp; \u003ca href=\"#A$41\"\u003eA\u003c/a\u003e \u0026amp; {\u003cp\u003e  \u003cdetails id=\"target$72\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#target$72\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003etarget\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L95\"\u003esrc/alice-bob.ts#L95\u003c/a\u003e  \u003cul\u003e\u003cp\u003e\u003ca href=\"#A$41\"\u003eA\u003c/a\u003e\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e}\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"remote$73\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#remote$73\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eremote\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; The remote Agent.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L99\"\u003esrc/alice-bob.ts#L99\u003c/a\u003e  \u003cul\u003e\u003cp\u003e\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#B$42\"\u003eB\u003c/a\u003e, \u003ca href=\"#A$41\"\u003eA\u003c/a\u003e\u0026gt;\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"agents$82\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#agents$82\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eagents\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(local, remote)\u003c/em\u003e     \u0026ndash; Returns the agents tuple \u003ccode\u003e[alice, bob]\u003c/code\u003e.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L276\"\u003esrc/alice-bob.ts#L276\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e  \u003cp\u003e\n\nExample:\n\n```ts\nconst [alice, bob] = new Alice\u003cLocal, Remote\u003e().agents()\n\n// to enable debugging on local (alice)\nconst [alice, bob] = new Alice\u003cLocal, Remote\u003e().agents({ debug: true })\n\n// use different names:\nconst [alice, bob] = new Alice\u003cLocal, Remote\u003e().agents(\n  { name: 'server', debug: true },\n  { name: 'client' }\n)\n```\n\n\u003c/p\u003e\n  \u003cdetails id=\"local$84\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#local$84\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003elocal\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003e\u003ccode\u003enull\u003c/code\u003e | \u003cspan\u003ePartial\u003c/span\u003e\u0026lt;\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#A$41\"\u003eA\u003c/a\u003e, \u003ca href=\"#B$42\"\u003eB\u003c/a\u003e\u0026gt;\u0026gt;\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"remote$85\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#remote$85\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eremote\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003e\u003ccode\u003enull\u003c/code\u003e | \u003cspan\u003ePartial\u003c/span\u003e\u0026lt;\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#B$42\"\u003eB\u003c/a\u003e, \u003ca href=\"#A$41\"\u003eA\u003c/a\u003e\u0026gt;\u0026gt;\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003eagents\u003c/strong\u003e\u003cem\u003e(local, remote)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003e[  {\u003cp\u003e  \u003cdetails id=\"debug$87\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#debug$87\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edebug\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; Whether or not to log debugging information.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L32\"\u003esrc/alice-bob.ts#L32\u003c/a\u003e  \u003cul\u003e\u003cp\u003eboolean\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"name$88\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#name$88\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003ename\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; The name of the agent. Defaults to either 'alice' or 'bob' depending\non the constructor used, Alice or Bob.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L38\"\u003esrc/alice-bob.ts#L38\u003c/a\u003e  \u003cul\u003e\u003cp\u003estring\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"send$89\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#send$89\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003esend\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; The send method overriden by the user to any transport.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L43\"\u003esrc/alice-bob.ts#L43\u003c/a\u003e  \u003cul\u003e\u003cp\u003e\u003ca href=\"#PayloadMethod$6\"\u003ePayloadMethod\u003c/a\u003e\u0026lt;\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#B$42\"\u003eB\u003c/a\u003e, \u003ca href=\"#A$41\"\u003eA\u003c/a\u003e\u0026gt;\u0026gt;\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"deferredSend$90\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#deferredSend$90\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edeferredSend\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e()\u003c/em\u003e     \u0026ndash; Returns the send method. Used in contexts where it might\nchange between sessions, like browser refresh/hot/livereload.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L49\"\u003esrc/alice-bob.ts#L49\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e      \u003cp\u003e\u003cstrong\u003edeferredSend\u003c/strong\u003e\u003cem\u003e()\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003e\u003ca href=\"#PayloadMethod$6\"\u003ePayloadMethod\u003c/a\u003e\u0026lt;\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#B$37\"\u003eB\u003c/a\u003e, \u003ca href=\"#A$36\"\u003eA\u003c/a\u003e\u0026gt;\u0026gt;\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"deserializer$96\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#deserializer$96\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edeserializer\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(data)\u003c/em\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L57\"\u003esrc/alice-bob.ts#L57\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"data$98\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#data$98\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edata\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eunknown\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003edeserializer\u003c/strong\u003e\u003cem\u003e(data)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003eany\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"log$99\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#log$99\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003elog\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(args)\u003c/em\u003e     \u0026ndash; Overridable logging function. Defaults to \u003ccode\u003econsole.log()\u003c/code\u003e and prepends \u003ccode\u003eagent.name\u003c/code\u003e.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L63\"\u003esrc/alice-bob.ts#L63\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"args$101\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#args$101\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eargs\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eunknown  []\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003elog\u003c/strong\u003e\u003cem\u003e(args)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003evoid\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"serializer$93\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#serializer$93\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eserializer\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(data)\u003c/em\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L56\"\u003esrc/alice-bob.ts#L56\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"data$95\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#data$95\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edata\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eunknown\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003eserializer\u003c/strong\u003e\u003cem\u003e(data)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003eany\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e} \u0026amp; \u003ca href=\"#A$41\"\u003eA\u003c/a\u003e \u0026amp; {\u003cp\u003e  \u003cdetails id=\"target$111\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#target$111\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003etarget\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L95\"\u003esrc/alice-bob.ts#L95\u003c/a\u003e  \u003cul\u003e\u003cp\u003e\u003ca href=\"#A$41\"\u003eA\u003c/a\u003e\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e}, \u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#B$42\"\u003eB\u003c/a\u003e, \u003ca href=\"#A$41\"\u003eA\u003c/a\u003e\u0026gt;  ]\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"deserializer$79\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#deserializer$79\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edeserializer\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(data)\u003c/em\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L108\"\u003esrc/alice-bob.ts#L108\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"data$81\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#data$81\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edata\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eany\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003edeserializer\u003c/strong\u003e\u003cem\u003e(data)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003eany\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"serializer$76\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#serializer$76\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eserializer\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(data)\u003c/em\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L107\"\u003esrc/alice-bob.ts#L107\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"data$78\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#data$78\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edata\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eany\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003eserializer\u003c/strong\u003e\u003cem\u003e(data)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003eany\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e\u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"Bob$187\" title=\"Class\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#Bob$187\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eBob\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; Bob class.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L313\"\u003esrc/alice-bob.ts#L313\u003c/a\u003e  \u003cul\u003e        \u003cp\u003e  \u003cdetails id=\"constructor$188\" title=\"Constructor\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#constructor$188\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003econstructor\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(send, target)\u003c/em\u003e     \u0026ndash; Creates an instance of Bob.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L318\"\u003esrc/alice-bob.ts#L318\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e  \u003cdetails id=\"new Bob$189\" title=\"ConstructorSignature\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#new Bob$189\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003enew Bob\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e()\u003c/em\u003e     \u0026ndash; Creates an instance of Bob.\u003c/summary\u003e    \u003cul\u003e\u003cp\u003e\u003ca href=\"#Bob$187\"\u003eBob\u003c/a\u003e\u0026lt;\u003ca href=\"#A$190\"\u003eA\u003c/a\u003e, \u003ca href=\"#B$191\"\u003eB\u003c/a\u003e\u0026gt;\u003c/p\u003e      \u003cp\u003e  \u003cdetails id=\"send$192\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#send$192\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003esend\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003e\u003ca href=\"#PayloadMethod$6\"\u003ePayloadMethod\u003c/a\u003e\u0026lt;\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#A$190\"\u003eA\u003c/a\u003e, \u003ca href=\"#B$191\"\u003eB\u003c/a\u003e\u0026gt;\u0026gt;\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"target$193\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#target$193\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003etarget\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003e\u003ca href=\"#A$190\"\u003eA\u003c/a\u003e\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e  \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"local$194\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#local$194\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003elocal\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; The local Agent.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L95\"\u003esrc/alice-bob.ts#L95\u003c/a\u003e  \u003cul\u003e\u003cp\u003e{\u003cp\u003e  \u003cdetails id=\"debug$196\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#debug$196\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edebug\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; Whether or not to log debugging information.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L32\"\u003esrc/alice-bob.ts#L32\u003c/a\u003e  \u003cul\u003e\u003cp\u003eboolean\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"name$197\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#name$197\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003ename\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; The name of the agent. Defaults to either 'alice' or 'bob' depending\non the constructor used, Alice or Bob.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L38\"\u003esrc/alice-bob.ts#L38\u003c/a\u003e  \u003cul\u003e\u003cp\u003estring\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"send$198\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#send$198\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003esend\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; The send method overriden by the user to any transport.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L43\"\u003esrc/alice-bob.ts#L43\u003c/a\u003e  \u003cul\u003e\u003cp\u003e\u003ca href=\"#PayloadMethod$6\"\u003ePayloadMethod\u003c/a\u003e\u0026lt;\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#B$191\"\u003eB\u003c/a\u003e, \u003ca href=\"#A$190\"\u003eA\u003c/a\u003e\u0026gt;\u0026gt;\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"deferredSend$199\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#deferredSend$199\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edeferredSend\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e()\u003c/em\u003e     \u0026ndash; Returns the send method. Used in contexts where it might\nchange between sessions, like browser refresh/hot/livereload.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L49\"\u003esrc/alice-bob.ts#L49\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e      \u003cp\u003e\u003cstrong\u003edeferredSend\u003c/strong\u003e\u003cem\u003e()\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003e\u003ca href=\"#PayloadMethod$6\"\u003ePayloadMethod\u003c/a\u003e\u0026lt;\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#B$37\"\u003eB\u003c/a\u003e, \u003ca href=\"#A$36\"\u003eA\u003c/a\u003e\u0026gt;\u0026gt;\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"deserializer$205\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#deserializer$205\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edeserializer\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(data)\u003c/em\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L57\"\u003esrc/alice-bob.ts#L57\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"data$207\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#data$207\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edata\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eunknown\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003edeserializer\u003c/strong\u003e\u003cem\u003e(data)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003eany\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"log$208\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#log$208\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003elog\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(args)\u003c/em\u003e     \u0026ndash; Overridable logging function. Defaults to \u003ccode\u003econsole.log()\u003c/code\u003e and prepends \u003ccode\u003eagent.name\u003c/code\u003e.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L63\"\u003esrc/alice-bob.ts#L63\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"args$210\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#args$210\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eargs\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eunknown  []\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003elog\u003c/strong\u003e\u003cem\u003e(args)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003evoid\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"serializer$202\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#serializer$202\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eserializer\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(data)\u003c/em\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L56\"\u003esrc/alice-bob.ts#L56\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"data$204\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#data$204\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edata\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eunknown\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003eserializer\u003c/strong\u003e\u003cem\u003e(data)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003eany\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e} \u0026amp; \u003ca href=\"#A$190\"\u003eA\u003c/a\u003e \u0026amp; {\u003cp\u003e  \u003cdetails id=\"target$220\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#target$220\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003etarget\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L95\"\u003esrc/alice-bob.ts#L95\u003c/a\u003e  \u003cul\u003e\u003cp\u003e\u003ca href=\"#A$190\"\u003eA\u003c/a\u003e\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e}\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"remote$221\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#remote$221\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eremote\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; The remote Agent.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L99\"\u003esrc/alice-bob.ts#L99\u003c/a\u003e  \u003cul\u003e\u003cp\u003e\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#B$191\"\u003eB\u003c/a\u003e, \u003ca href=\"#A$190\"\u003eA\u003c/a\u003e\u0026gt;\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"agents$228\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#agents$228\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eagents\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(local, remote)\u003c/em\u003e     \u0026ndash; Returns the agents tuple \u003ccode\u003e[alice, bob]\u003c/code\u003e.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L276\"\u003esrc/alice-bob.ts#L276\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e  \u003cp\u003e\n\nExample:\n\n```ts\nconst [alice, bob] = new Alice\u003cLocal, Remote\u003e().agents()\n\n// to enable debugging on local (alice)\nconst [alice, bob] = new Alice\u003cLocal, Remote\u003e().agents({ debug: true })\n\n// use different names:\nconst [alice, bob] = new Alice\u003cLocal, Remote\u003e().agents(\n  { name: 'server', debug: true },\n  { name: 'client' }\n)\n```\n\n\u003c/p\u003e\n  \u003cdetails id=\"local$230\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#local$230\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003elocal\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003e\u003ccode\u003enull\u003c/code\u003e | \u003cspan\u003ePartial\u003c/span\u003e\u0026lt;\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#A$190\"\u003eA\u003c/a\u003e, \u003ca href=\"#B$191\"\u003eB\u003c/a\u003e\u0026gt;\u0026gt;\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"remote$231\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#remote$231\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eremote\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003e\u003ccode\u003enull\u003c/code\u003e | \u003cspan\u003ePartial\u003c/span\u003e\u0026lt;\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#B$191\"\u003eB\u003c/a\u003e, \u003ca href=\"#A$190\"\u003eA\u003c/a\u003e\u0026gt;\u0026gt;\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003eagents\u003c/strong\u003e\u003cem\u003e(local, remote)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003e[  {\u003cp\u003e  \u003cdetails id=\"debug$233\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#debug$233\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edebug\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; Whether or not to log debugging information.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L32\"\u003esrc/alice-bob.ts#L32\u003c/a\u003e  \u003cul\u003e\u003cp\u003eboolean\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"name$234\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#name$234\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003ename\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; The name of the agent. Defaults to either 'alice' or 'bob' depending\non the constructor used, Alice or Bob.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L38\"\u003esrc/alice-bob.ts#L38\u003c/a\u003e  \u003cul\u003e\u003cp\u003estring\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"send$235\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#send$235\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003esend\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; The send method overriden by the user to any transport.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L43\"\u003esrc/alice-bob.ts#L43\u003c/a\u003e  \u003cul\u003e\u003cp\u003e\u003ca href=\"#PayloadMethod$6\"\u003ePayloadMethod\u003c/a\u003e\u0026lt;\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#B$191\"\u003eB\u003c/a\u003e, \u003ca href=\"#A$190\"\u003eA\u003c/a\u003e\u0026gt;\u0026gt;\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"deferredSend$236\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#deferredSend$236\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edeferredSend\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e()\u003c/em\u003e     \u0026ndash; Returns the send method. Used in contexts where it might\nchange between sessions, like browser refresh/hot/livereload.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L49\"\u003esrc/alice-bob.ts#L49\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e      \u003cp\u003e\u003cstrong\u003edeferredSend\u003c/strong\u003e\u003cem\u003e()\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003e\u003ca href=\"#PayloadMethod$6\"\u003ePayloadMethod\u003c/a\u003e\u0026lt;\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#B$37\"\u003eB\u003c/a\u003e, \u003ca href=\"#A$36\"\u003eA\u003c/a\u003e\u0026gt;\u0026gt;\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"deserializer$242\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#deserializer$242\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edeserializer\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(data)\u003c/em\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L57\"\u003esrc/alice-bob.ts#L57\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"data$244\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#data$244\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edata\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eunknown\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003edeserializer\u003c/strong\u003e\u003cem\u003e(data)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003eany\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"log$245\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#log$245\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003elog\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(args)\u003c/em\u003e     \u0026ndash; Overridable logging function. Defaults to \u003ccode\u003econsole.log()\u003c/code\u003e and prepends \u003ccode\u003eagent.name\u003c/code\u003e.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L63\"\u003esrc/alice-bob.ts#L63\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"args$247\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#args$247\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eargs\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eunknown  []\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003elog\u003c/strong\u003e\u003cem\u003e(args)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003evoid\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"serializer$239\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#serializer$239\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eserializer\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(data)\u003c/em\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L56\"\u003esrc/alice-bob.ts#L56\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"data$241\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#data$241\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edata\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eunknown\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003eserializer\u003c/strong\u003e\u003cem\u003e(data)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003eany\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e} \u0026amp; \u003ca href=\"#A$190\"\u003eA\u003c/a\u003e \u0026amp; {\u003cp\u003e  \u003cdetails id=\"target$257\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#target$257\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003etarget\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L95\"\u003esrc/alice-bob.ts#L95\u003c/a\u003e  \u003cul\u003e\u003cp\u003e\u003ca href=\"#A$190\"\u003eA\u003c/a\u003e\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e}, \u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#B$191\"\u003eB\u003c/a\u003e, \u003ca href=\"#A$190\"\u003eA\u003c/a\u003e\u0026gt;  ]\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"deserializer$225\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#deserializer$225\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edeserializer\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(data)\u003c/em\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L108\"\u003esrc/alice-bob.ts#L108\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"data$227\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#data$227\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edata\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eany\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003edeserializer\u003c/strong\u003e\u003cem\u003e(data)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003eany\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"serializer$222\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#serializer$222\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eserializer\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(data)\u003c/em\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L107\"\u003esrc/alice-bob.ts#L107\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"data$224\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#data$224\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edata\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eany\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003eserializer\u003c/strong\u003e\u003cem\u003e(data)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003eany\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e\u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"Payload$1\" title=\"Interface\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#Payload$1\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003ePayload\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; Payload.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L6\"\u003esrc/alice-bob.ts#L6\u003c/a\u003e  \u003cul\u003e        \u003cp\u003e  \u003cdetails id=\"args$4\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#args$4\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eargs\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; The arguments passed to the method.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L18\"\u003esrc/alice-bob.ts#L18\u003c/a\u003e  \u003cul\u003e\u003cp\u003eunknown  []\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"id$2\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#id$2\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eid\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; Payload id.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L10\"\u003esrc/alice-bob.ts#L10\u003c/a\u003e  \u003cul\u003e\u003cp\u003enumber\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"method$3\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#method$3\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003emethod\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; Method to call.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L14\"\u003esrc/alice-bob.ts#L14\u003c/a\u003e  \u003cul\u003e\u003cp\u003ekeyof     \u003ca href=\"#T$5\"\u003eT\u003c/a\u003e\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e\u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"Agent$11\" title=\"TypeAlias\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#Agent$11\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eAgent\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; Agent.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L28\"\u003esrc/alice-bob.ts#L28\u003c/a\u003e  \u003cul\u003e\u003cp\u003e{\u003cp\u003e  \u003cdetails id=\"debug$13\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#debug$13\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edebug\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; Whether or not to log debugging information.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L32\"\u003esrc/alice-bob.ts#L32\u003c/a\u003e  \u003cul\u003e\u003cp\u003eboolean\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"name$14\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#name$14\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003ename\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; The name of the agent. Defaults to either 'alice' or 'bob' depending\non the constructor used, Alice or Bob.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L38\"\u003esrc/alice-bob.ts#L38\u003c/a\u003e  \u003cul\u003e\u003cp\u003estring\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"send$15\" title=\"Property\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#send$15\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003esend\u003c/strong\u003e\u003c/code\u003e     \u0026ndash; The send method overriden by the user to any transport.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L43\"\u003esrc/alice-bob.ts#L43\u003c/a\u003e  \u003cul\u003e\u003cp\u003e\u003ca href=\"#PayloadMethod$6\"\u003ePayloadMethod\u003c/a\u003e\u0026lt;\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#B$37\"\u003eB\u003c/a\u003e, \u003ca href=\"#A$36\"\u003eA\u003c/a\u003e\u0026gt;\u0026gt;\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"deferredSend$16\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#deferredSend$16\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edeferredSend\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e()\u003c/em\u003e     \u0026ndash; Returns the send method. Used in contexts where it might\nchange between sessions, like browser refresh/hot/livereload.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L49\"\u003esrc/alice-bob.ts#L49\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e      \u003cp\u003e\u003cstrong\u003edeferredSend\u003c/strong\u003e\u003cem\u003e()\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003e\u003ca href=\"#PayloadMethod$6\"\u003ePayloadMethod\u003c/a\u003e\u0026lt;\u003ca href=\"#Agent$11\"\u003eAgent\u003c/a\u003e\u0026lt;\u003ca href=\"#B$37\"\u003eB\u003c/a\u003e, \u003ca href=\"#A$36\"\u003eA\u003c/a\u003e\u0026gt;\u0026gt;\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"deserializer$22\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#deserializer$22\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edeserializer\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(data)\u003c/em\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L57\"\u003esrc/alice-bob.ts#L57\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"data$24\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#data$24\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edata\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eunknown\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003edeserializer\u003c/strong\u003e\u003cem\u003e(data)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003eany\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"log$25\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#log$25\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003elog\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(args)\u003c/em\u003e     \u0026ndash; Overridable logging function. Defaults to \u003ccode\u003econsole.log()\u003c/code\u003e and prepends \u003ccode\u003eagent.name\u003c/code\u003e.\u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L63\"\u003esrc/alice-bob.ts#L63\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"args$27\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#args$27\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eargs\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eunknown  []\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003elog\u003c/strong\u003e\u003cem\u003e(args)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003evoid\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"serializer$19\" title=\"Method\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#serializer$19\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003eserializer\u003c/strong\u003e\u003c/code\u003e\u003cem\u003e(data)\u003c/em\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L56\"\u003esrc/alice-bob.ts#L56\u003c/a\u003e  \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"data$21\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#data$21\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003edata\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003eunknown\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003eserializer\u003c/strong\u003e\u003cem\u003e(data)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003eany\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e} \u0026amp; \u003ca href=\"#A$36\"\u003eA\u003c/a\u003e\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003cdetails id=\"PayloadMethod$6\" title=\"TypeAlias\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#PayloadMethod$6\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003ePayloadMethod\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e  \u003ca href=\"src/alice-bob.ts#L21\"\u003esrc/alice-bob.ts#L21\u003c/a\u003e  \u003cul\u003e\u003cp\u003e\u003cdetails id=\"__type$7\" title=\"Function\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#__type$7\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003cem\u003e(payload)\u003c/em\u003e    \u003c/summary\u003e    \u003cul\u003e    \u003cp\u003e    \u003cdetails id=\"payload$9\" title=\"Parameter\" \u003e\u003csummary\u003e\u003cspan\u003e\u003ca href=\"#payload$9\"\u003e#\u003c/a\u003e\u003c/span\u003e  \u003ccode\u003e\u003cstrong\u003epayload\u003c/strong\u003e\u003c/code\u003e    \u003c/summary\u003e    \u003cul\u003e\u003cp\u003e\u003ca href=\"#Payload$1\"\u003ePayload\u003c/a\u003e\u0026lt;\u003ca href=\"#T$10\"\u003eT\u003c/a\u003e\u0026gt;\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e  \u003cp\u003e\u003cstrong\u003e\u003c/strong\u003e\u003cem\u003e(payload)\u003c/em\u003e  \u0026nbsp;=\u0026gt;  \u003cul\u003e\u003cspan\u003ePromise\u003c/span\u003e\u0026lt;unknown\u0026gt; | unknown\u003c/ul\u003e\u003c/p\u003e\u003c/p\u003e    \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e        \u003c/ul\u003e\u003c/details\u003e\u003c/p\u003e\n\n## Contributing\n\n[Fork](https://github.com/stagas/alice-bob/fork) or [edit](https://github.dev/stagas/alice-bob) and submit a PR.\n\nAll contributions are welcome!\n\n## License\n\n\u003ca href=\"LICENSE\"\u003eMIT\u003c/a\u003e \u0026copy; 2022 [stagas](https://github.com/stagas)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstagas%2Falice-bob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstagas%2Falice-bob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstagas%2Falice-bob/lists"}