Commit Graph

56 Commits

Author SHA1 Message Date
Matthias 0f878daa98 Remove some too generic noqa statements 2023-02-22 19:56:32 +01:00
Timothy Pogue 89338fa677 allow specifying channel send throttle 2022-12-12 22:47:35 -07:00
Timothy Pogue a26b3a9ca8 change sleep call back to 0.01 2022-11-26 09:40:22 -07:00
Timothy Pogue 4aa4c6f49d change sleep in channel send to 0 2022-11-25 13:08:41 -07:00
Timothy Pogue afc00bc30a log warning if channel too far behind, add docstrings to message stream 2022-11-25 12:48:57 -07:00
Timothy Pogue 101dec461e close ws channel if can't accept 2022-11-24 11:35:50 -07:00
Timothy Pogue 48242ca02b update catch block in cancel channel tasks 2022-11-22 12:43:45 -07:00
Timothy Pogue d9d7df70bf fix tests, log unknown errors 2022-11-21 12:21:40 -07:00
Timothy Pogue d2870d48ea change typing to async iterator 2022-11-20 16:24:44 -07:00
Timothy Pogue 48a1f2418f update typing, remove unneeded try block, readd sleep 2022-11-20 16:18:24 -07:00
Timothy Pogue 60a167bdef add dynamic send timeout 2022-11-20 14:09:45 -07:00
Timothy Pogue 3714d7074b smaller throttle in channel send 2022-11-19 13:29:23 -07:00
Timothy Pogue c1a73a5512 move sleep call in send, minor cleanup 2022-11-19 13:21:26 -07:00
Timothy Pogue 98d87b3ba6 Merge branch 'develop' into feat/refactor-ws 2022-11-18 13:41:22 -07:00
Timothy Pogue 0cb6f71c02 better error handling, true async sending, more readable api 2022-11-18 13:32:27 -07:00
Timothy Pogue b6a8e421f1 remove redundant timestamp conversion in ws serializer 2022-11-18 09:43:39 -07:00
Timothy Pogue ba493eb7a7 Merge fix/pd-mem-leak 2022-11-17 16:21:12 -07:00
Timothy Pogue ce43fa5f43 small fix to websocketchannel and relay 2022-11-17 12:03:11 -07:00
Timothy Pogue 875e9ab447 change df serialization to avoid mem leak 2022-11-17 11:59:03 -07:00
Timothy Pogue 442467e8ae remove old comments and code 2022-11-14 22:26:34 -07:00
Timothy Pogue d713af045f remove main queue completely 2022-11-14 22:21:40 -07:00
Timothy Pogue 659c8c237f initial revision 2022-11-14 20:27:45 -07:00
Matthias fed3bc6730 Simplify Websocket Init 2022-11-13 10:33:54 +01:00
Matthias ff619edebf Improve explanation comment as to why we're waiting ourselfs 2022-11-03 06:50:18 +01:00
Timothy Pogue cbede2e27d refactor channel.send to avoid queue.put 2022-11-02 17:57:11 -06:00
Timothy Pogue 2dc55e89e6 better error handling channel send 2022-11-02 15:25:39 -06:00
Timothy Pogue 55bf195bfb remove debugging log calls 2022-11-02 14:21:34 -06:00
Timothy Pogue c2bdaea84a change exception handling in channel send 2022-11-02 14:19:08 -06:00
Timothy Pogue e25dea7e0e update channel disconnecting 2022-11-02 13:26:27 -06:00
Matthias 3fa50077c9 Don't use pydantic to type-verify outgoing messages 2022-10-25 20:00:53 +02:00
Timothy Pogue 94b65a007a fix message typing in channel manager, minor improvements 2022-10-23 11:42:59 -06:00
Timothy Pogue 9cffa3ca2b add comment in channel 2022-10-22 21:03:57 -06:00
Timothy Pogue 3d7a311caa removed sleep calls, better channel sending 2022-10-22 19:02:05 -06:00
Timothy Pogue 2b6d00dde4 initial channel api change 2022-10-22 09:30:18 -06:00
Timothy Pogue eb8c89fe31 move send delay to relay 2022-10-10 23:32:10 -06:00
Timothy Pogue 71bbffd10a update ws channel send to add data to queue 2022-10-09 18:49:04 -06:00
Timothy Pogue 2f64a08623 set channel queue maxsize to 32 2022-10-09 15:11:58 -06:00
Timothy Pogue 3e8d8fd1b0 refactor broadcasting to a queue per client 2022-10-09 15:04:52 -06:00
Timothy Pogue e54ed5b10e fix runtime error: dict changed size during iteration 2022-09-25 15:05:56 -06:00
Matthias 3274bb0751 Remove msgpack for now 2022-09-20 06:55:22 +02:00
Timothy Pogue aed19ff6ce fix The future belongs to a different loop error 2022-09-13 19:17:12 -06:00
Matthias d2abc9417f Simplify ws imports 2022-09-13 20:51:13 +02:00
Matthias b6434040de Remove plain json serializer implementation 2022-09-12 20:24:28 +02:00
Timothy Pogue 0bc18ea33c call websocket close in channel close 2022-09-10 15:12:18 -06:00
Timothy Pogue 2b9c8550b0 moved ws_schemas, first ws tests 2022-09-08 13:58:28 -06:00
Timothy Pogue b3b0c918d9 cleanup old code 2022-09-08 10:44:03 -06:00
Timothy Pogue 5934495dda add websocket request/message schemas 2022-09-07 15:08:01 -06:00
Timothy Pogue b1c0267449 mypy fixes 2022-09-06 12:40:58 -06:00
Timothy Pogue 38f14349e9 move bytes decoding to serializer 2022-09-05 23:25:25 -06:00
Timothy Pogue 8f261d8edf change from bytes to text in websocket, remove old logs 2022-09-05 13:47:17 -06:00