diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2023-11-03 08:26:20 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-11-09 17:21:15 +0000 |
commit | 56dd2fdbfb6350a9eef43a12aa529c8637887a7e (patch) | |
tree | cd814f49f677dac628346b6554aafd216108e0b2 /lib/hashserv/client.py | |
parent | 2aaeae53696e4c2f13a169830c3b7089cbad6eca (diff) | |
download | bitbake-56dd2fdbfb6350a9eef43a12aa529c8637887a7e.tar.gz |
hashserv: Add websocket connection implementation
Adds support to the hash equivalence client and server to communicate
over websockets. Since websockets are message orientated instead of
stream orientated, and new connection class is needed to handle them.
Note that websocket support does require the 3rd party websockets python
module be installed on the host, but it should not be required unless
websockets are actually being used.
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/hashserv/client.py')
-rw-r--r-- | lib/hashserv/client.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/hashserv/client.py b/lib/hashserv/client.py index 5f7d22ab1..9542d72f6 100644 --- a/lib/hashserv/client.py +++ b/lib/hashserv/client.py @@ -115,6 +115,7 @@ class Client(bb.asyncrpc.Client): super().__init__() self._add_methods( "connect_tcp", + "connect_websocket", "get_unihash", "report_unihash", "report_unihash_equiv", |