feat(jsonrpc): JSON-RPC 2.0 over WebSocket external API - #80
Open
EnriqueParodi wants to merge 1 commit into
Open
feat(jsonrpc): JSON-RPC 2.0 over WebSocket external API#80EnriqueParodi wants to merge 1 commit into
EnriqueParodi wants to merge 1 commit into
Conversation
EnriqueParodi
force-pushed
the
feat/libs-gen
branch
from
August 16, 2026 16:24
d04bf7b to
5cddd87
Compare
EnriqueParodi
force-pushed
the
feat/jsonrpc
branch
3 times, most recently
from
August 16, 2026 20:05
430e8cf to
905cb76
Compare
EnriqueParodi
force-pushed
the
feat/libs-gen
branch
from
August 16, 2026 20:05
5cddd87 to
8d224cf
Compare
EnriqueParodi
force-pushed
the
feat/jsonrpc
branch
from
August 17, 2026 07:13
905cb76 to
2791e29
Compare
EnriqueParodi
force-pushed
the
feat/libs-gen
branch
from
August 17, 2026 07:46
8d224cf to
c32ab94
Compare
EnriqueParodi
force-pushed
the
feat/jsonrpc
branch
from
August 17, 2026 07:46
2791e29 to
9351a82
Compare
EnriqueParodi
force-pushed
the
feat/libs-gen
branch
from
August 18, 2026 22:27
c32ab94 to
51d90b9
Compare
EnriqueParodi
force-pushed
the
feat/jsonrpc
branch
from
August 18, 2026 22:27
9351a82 to
dfaf5db
Compare
EnriqueParodi
force-pushed
the
feat/libs-gen
branch
3 times, most recently
from
August 19, 2026 14:11
f5bded8 to
a3e8f32
Compare
EnriqueParodi
force-pushed
the
feat/jsonrpc
branch
from
August 19, 2026 15:07
dfaf5db to
d7783f8
Compare
EnriqueParodi
marked this pull request as ready for review
August 19, 2026 15:08
EnriqueParodi
force-pushed
the
feat/jsonrpc
branch
2 times, most recently
from
August 19, 2026 16:12
1c8c4c6 to
8de4983
Compare
EnriqueParodi
force-pushed
the
feat/libs-gen
branch
from
August 19, 2026 16:18
a3e8f32 to
1debdbf
Compare
EnriqueParodi
force-pushed
the
feat/libs-gen
branch
from
August 19, 2026 17:01
1debdbf to
83fba06
Compare
EnriqueParodi
force-pushed
the
feat/jsonrpc
branch
from
August 19, 2026 17:01
8de4983 to
5e18b28
Compare
EnriqueParodi
force-pushed
the
feat/libs-gen
branch
from
August 19, 2026 19:05
83fba06 to
884fd0e
Compare
EnriqueParodi
force-pushed
the
feat/jsonrpc
branch
from
August 19, 2026 19:05
5e18b28 to
06639f5
Compare
EnriqueParodi
force-pushed
the
feat/libs-gen
branch
from
August 19, 2026 21:21
884fd0e to
dbc734e
Compare
EnriqueParodi
force-pushed
the
feat/jsonrpc
branch
from
August 19, 2026 21:21
06639f5 to
92c0e2f
Compare
EnriqueParodi
force-pushed
the
feat/libs-gen
branch
from
August 20, 2026 11:26
dbc734e to
9a2859b
Compare
EnriqueParodi
force-pushed
the
feat/jsonrpc
branch
from
August 20, 2026 11:26
92c0e2f to
156982b
Compare
Sen's external API: every object's properties, methods and events reachable over one WebSocket per process, typed end-to-end through STL. Clients open named interests, which are live SQL queries, and each connection is capped at 256 of them so a remote peer cannot grow that resource without bound.
EnriqueParodi
force-pushed
the
feat/libs-gen
branch
from
August 20, 2026 21:03
9a2859b to
b9c46e5
Compare
EnriqueParodi
force-pushed
the
feat/jsonrpc
branch
from
August 20, 2026 21:03
156982b to
ae0ba5c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Sen's external API for programmatic access: every Sen object's properties,
methods, and events reachable over a single WebSocket per process,
typed end-to-end through STL.
Wire surface:
sessions and buses.
query against a bus), receive the initial match-set, then read /
write / invoke / subscribe against named objects in that match-set.
Server pushes interestUpdate frames as the match-set changes.
for snapshot-style use cases; one round-trip beats N getProperty calls
for large pinned sets.
withSchemasships JSON-Schema fragments alongside each type'sCustomTypeSpec, so clients shaping values for setProperty / invokeMethod
don't need an extra getType round-trip per type.
Correctness commitments:
and lock-and-test before dereferencing; the kernel-side Callback
invalidation is a race-stop, not a guarantee.
std::atomic_flag; the async-invoke callback path can fire from any
thread.
is over normalised file paths (not dangling string_views).
switch (the wire shape exposes a [static_no_config] property, not
a [static] one, so dynamic registration works).
the per-format codec lives in floor-divide TimeStamp formatters
(with negative-timestamp arithmetic correct).
unit-tested.
Architectural choices:
subscribe go through the STL surface for clean typing; read / state /
topology hand-routed for snapshot semantics.
on the kernel-scheduled run() thread.
PUBLIC_SYMBOLS package flag keeps server internals out of consumers.
Interest creation semantics:
address, so the defensive "unknown bus" rejection was unreachable --
removed in favor of a comment stating the real contract.
publisher joins the address (reconnecting clients that re-declare
before the domain rebuilds depend on this; unit-pinned so a future
"validate the bus" refactor fails loudly).
now capped: at most 256 live interests per connection, with an
actionable error.
Documentation: