Skip to content
This repository has been archived by the owner on Dec 22, 2024. It is now read-only.

Commit

Permalink
add session_id to HELLO message
Browse files Browse the repository at this point in the history
allows master to inform the client what session_id it was assigned internally

while this info can be ignored by clients and they should still work, it indicates the session_id that gets assigned inside ovos-core
  • Loading branch information
JarbasAl committed Nov 21, 2023
1 parent b07baa4 commit 8021450
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hivemind_core/protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ def handle_new_client(self, client: HiveMindClientConnection):
payload={"pubkey": client.handshake.pubkey,
# allows any node to verify messages are signed with this
"peer": client.peer, # this identifies the connected client in ovos message.context
"node_id": self.peer})
"node_id": self.peer,
"session_id": client.sess.session_id})
LOG.debug(f"saying HELLO to: {client.peer}")
client.send(msg)

Expand Down

0 comments on commit 8021450

Please sign in to comment.