Sync library with live findings: raw socket docs, wire reply parsing, pack-id BMS, empty-slot guard
This commit is contained in:
1 parent
3d59a75f14
commit
c11188dd0b
6 files changed
+83
-31
No files matched your search
@@ -212,10 +212,9 @@ def frame_socket_payload(payload: bytes) -> bytes:
|
||||
class SocketFrameDecoder:
|
||||
"""Accumulating socket receiver (``SocketManager._onSocketReceiveData``).
|
||||
|
||||
Each incoming chunk is appended to a growable buffer and ``decrypt_data``
|
||||
is attempted over the whole buffer (inside try/catch in the app); a
|
||||
non-empty decoded string that parses as JSON is one complete reply, at
|
||||
which point the buffer is cleared. Use :meth:`feed` for raw chunks and
|
||||
Each incoming chunk is appended to a growable buffer and ``decrypt_wire``
|
||||
is attempted over the whole buffer; a decoded string that parses as
|
||||
JSON is one complete reply, at which point the buffer is cleared. Use :meth:`feed` for raw chunks and
|
||||
:meth:`feed_json` when you want parsed envelopes back.
|
||||
"""
|
||||
|
||||
|
||||
Reference in new issue
Block a user