hodlbod on Nostr: Here's a question: I feel like I started wading into rxjs with a very hard problem, ...
Here's a question: I feel like I started wading into rxjs with a very hard problem, websocket connections. Websockets are shared resources, and so need to be modeled using a subject somewhere along the line. They're also bi-directional, and so I'm not sure how to pass them around in an idiomatic way. I'd like to define a function like`implementAuthPolicy(tx, rx)` that can intercept and buffer both sent and received messages. Maybe that's less of a question than me just thinking out loud.
Published at
2025-03-26 20:08:52Event JSON
{
"id": "901fcdbad7588d2527898d62688abeaf3d4801964f9cf3775b17947be799b068",
"pubkey": "97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322",
"created_at": 1743019732,
"kind": 1,
"tags": [
[
"p",
"c6603b0f1ccfec625d9c08b753e4f774eaf7d1cf2769223125b5fd4da728019e",
"wss://relay.damus.io/",
"Cesar Dias"
],
[
"p",
"266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5",
"wss://satellite.hzrd149.com/",
"hzrd149"
],
[
"e",
"7232af889e79b07bc8dab1307acc24766bd869f9a9be3ff86f8239be532ef2f9",
"wss://hbr.coracle.social/inbox",
"root"
],
[
"e",
"1e6e86da97442e85866b93eb7ade12e76c860943cf6641fc4e7b14e73f7d0662",
"wss://relay.mostr.pub/",
"reply",
"c6603b0f1ccfec625d9c08b753e4f774eaf7d1cf2769223125b5fd4da728019e"
],
[
"client",
"Coracle",
"31990:97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322:1685968093690"
]
],
"content": "Here's a question: I feel like I started wading into rxjs with a very hard problem, websocket connections. Websockets are shared resources, and so need to be modeled using a subject somewhere along the line. They're also bi-directional, and so I'm not sure how to pass them around in an idiomatic way. I'd like to define a function like`implementAuthPolicy(tx, rx)` that can intercept and buffer both sent and received messages. Maybe that's less of a question than me just thinking out loud.",
"sig": "6fe3e63f75d65ca0da790c3c61fac521c404ba8402ca2c808c1da1f982db9a2f83b269e290b5865bf3cebad326a5933ab5bea4111529f19d0459752c2b1a35b4"
}