aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-common/src/meshbay_common/protocol.py
diff options
context:
space:
mode:
authorChristophe Besson <cbesson@gmail.com>2026-08-28 03:43:29 +0200
committerChristophe Besson <cbesson@gmail.com>2026-08-28 03:43:29 +0200
commit25ebaed11772056c611c3ce650387d6961e0baa0 (patch)
treee22bee25a2cdf3e11cbfce2525728d2010ab85d8 /packages/meshbay-common/src/meshbay_common/protocol.py
parent2f573b4143212b21d92ff20179356acb8f8fe635 (diff)
parentce4e10c4b8bd9c66c375c3a5d5c18d8552655775 (diff)
downloadmeshbay-25ebaed11772056c611c3ce650387d6961e0baa0.tar.gz
Merge branch 'feat/chat-link-previews'
Diffstat (limited to 'packages/meshbay-common/src/meshbay_common/protocol.py')
-rw-r--r--packages/meshbay-common/src/meshbay_common/protocol.py5
1 files changed, 5 insertions, 0 deletions
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