endojs / endo

Endo is a distributed secure JavaScript sandbox, based on SES
Apache License 2.0
829 stars 72 forks source link

feat(daemon): mail is delivered to both inboxes + includes formula identifiers #2004

Closed kumavis closed 9 months ago

kumavis commented 9 months ago

this powers the chat feature in https://github.com/endojs/endo/pull/1877 including the package message formula type-aware context menu

kumavis commented 9 months ago

Can add a test.

I'm considering refactoring messages to cover both requests and packages. I'd prefer to revisit the property rename then

kumavis commented 9 months ago

we'll likely need to significantly redo mail to support multiplayer right? im unclear about that part

kriskowal commented 9 months ago

we'll likely need to significantly redo mail to support multiplayer right? im unclear about that part

There’ll be changes. I’m not sure how extensive yet. I do know that we’ll be putting “undubbed” messages on the wire (edge names and formula identifiers, neither the sender nor the receiver’s pet names), and the protocol object exposed to the wire will be some kind of dropbox for which the sender and receiver are either implied or enforced. The internal mailbox API might be the same or similar.