diff options
Diffstat (limited to 'packages/meshbay-common/src/meshbay_common')
| -rw-r--r-- | packages/meshbay-common/src/meshbay_common/__init__.py | 5 | ||||
| -rw-r--r-- | packages/meshbay-common/src/meshbay_common/protocol.py | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/packages/meshbay-common/src/meshbay_common/__init__.py b/packages/meshbay-common/src/meshbay_common/__init__.py index 0ca0005..1f82f88 100644 --- a/packages/meshbay-common/src/meshbay_common/__init__.py +++ b/packages/meshbay-common/src/meshbay_common/__init__.py @@ -49,5 +49,8 @@ __version__ = "0.7.0" # *set*, replaced whole in one signed op — a photo library is routinely # scattered across several folders, not one. Additive: an older client # never sends the op and never expects either field. -MNP_VERSION = "0.11" +# 0.12: added `link_preview_req`/`link_preview_resp` — the node unfurls a URL +# pasted in chat into an OpenGraph card. Additive: an older node logs "unknown +# type" and the client just shows the bare link, as it always did. +MNP_VERSION = "0.12" MHP_VERSION = "0.1" diff --git a/packages/meshbay-common/src/meshbay_common/protocol.py b/packages/meshbay-common/src/meshbay_common/protocol.py index dd377e7..d4e3ccd 100644 --- a/packages/meshbay-common/src/meshbay_common/protocol.py +++ b/packages/meshbay-common/src/meshbay_common/protocol.py @@ -37,6 +37,11 @@ class MNP: CHAT_ATTACHMENT = "chat_attach" # attachment metadata CHAT_HISTORY = "chat_hist" # request message history (newest, or before a cursor) CHAT_HISTORY_RESPONSE = "chat_hist_resp" # history response with messages + # Link unfurl: the node fetches a URL a member pasted and returns an + # OpenGraph card. Additive (0.12) — an older node just logs "unknown type" + # and the client shows the bare link, exactly as before. + LINK_PREVIEW_REQ = "link_preview_req" # client → node: unfurl this URL + LINK_PREVIEW_RESP = "link_preview_resp" # node → client: card fields, or ok:false # Liveness on an *already open* channel. A peer that goes away without # closing leaves a DataChannel that still reads as connected until the next # real request hangs, and there was no way to ask. This is not a discovery |