@@ -200,11 +200,7 @@ new Renraku.Server({
200200 // expose websocket json-rpc api
201201 websocket: Renraku.asAccepter<Serverside, Clientside>(
202202 async connection => ({
203- fns: {
204- async hello() {
205- return "hi"
206- },
207- },
203+ fns: {async hello() { return "hi" }},
208204 disconnected() {},
209205 })
210206 ),
@@ -396,7 +392,6 @@ the following examples will demonstrate using Messengers with WindowConduits for
396392 targetOrigin: " https://example.e280.org" ,
397393 allow : e => e .origin === " https://example.e280.org" ,
398394 }),
399-
400395 getLocalEndpoint : async (remote , rig ) => (
401396 Renraku .makeEndpoint (myPopupFns )
402397 // ☝️
@@ -417,10 +412,11 @@ the following examples will demonstrate using Messengers with WindowConduits for
417412 targetOrigin: " https://example.e280.org" ,
418413 allow : e => e .origin === " https://example.e280.org" ,
419414 }),
420-
421- // local-side fns
422- // 👇
423- getLocalEndpoint : async (remote , rig ) => endpoint (myOpenerFns ),
415+ getLocalEndpoint : async (remote , rig ) => (
416+ Renraku .makeEndpoint (myOpenerFns )
417+ // ☝️
418+ // local-side fns
419+ ),
424420 })
425421
426422 // calling a popup fn
@@ -437,7 +433,6 @@ the following examples will demonstrate using Messengers with WindowConduits for
437433 targetOrigin: " https://example.e280.org" ,
438434 allow : e => e .origin === " https://example.e280.org" ,
439435 }),
440-
441436 getLocalEndpoint : async (remote , rig ) => (
442437 Renraku .makeEndpoint (myPopupFns )
443438 // ☝️
0 commit comments