Mario Zechner on Nostr: After constructing the message object and rendering it, the message object is passed ...
After constructing the message object and rendering it, the message object is passed to "sendServer()" which ... sends the thing to the server.
It looks like they have different response types. But they don't just encode those as plain, easy to parse JSON responses.
No. It's a UTF-8 stream with ==XXX== demarking "commands".
LOL
Published at
2024-01-03 12:50:32Event JSON
{
"id": "882922c0b3ffc36b7af139bfb06dc25a317ecd0e3526cb328dc1b4290383d1fd",
"pubkey": "be81b496ea025894275a88346ffbf7d217a8886f108185e401387647eff089b4",
"created_at": 1704286232,
"kind": 1,
"tags": [
[
"e",
"78aacfa5e767500d879798406dbe741a575922ed70029e591c67444f8acc9277",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://mastodon.gamedev.place/users/badlogic/statuses/111692102518137958",
"activitypub"
]
],
"content": "After constructing the message object and rendering it, the message object is passed to \"sendServer()\" which ... sends the thing to the server.\n\nIt looks like they have different response types. But they don't just encode those as plain, easy to parse JSON responses.\n\nNo. It's a UTF-8 stream with ==XXX== demarking \"commands\".\n\nLOL\n\nhttps://cdn.masto.host/mastodongamedevplace/media_attachments/files/111/692/091/148/075/331/original/b2fb0d99991f93db.png\n\nhttps://cdn.masto.host/mastodongamedevplace/media_attachments/files/111/692/096/903/963/659/original/292e9b1e9f4d6aba.png\n\nhttps://cdn.masto.host/mastodongamedevplace/media_attachments/files/111/692/099/820/205/296/original/002807874acdb8be.png",
"sig": "5a47b7e7f3744e94eb8b7f243799ef31bb0db766c78b8779c3ccba5f5dda8484c75e28f0c8d8d5ce6c127a9aff5de11ed53f9ca756b77bc5f752125ab3abcf5c"
}