Commit graph

117 commits

Author SHA1 Message Date
49b37649e3 Return entire packet in ConnTx::recv 2022-08-20 20:18:43 +02:00
741d6c8548 Serialize all parts of Package if set 2022-08-20 20:07:31 +02:00
c385ae9d97 Fix websocket pinging behaviour
The websocket standard allows sending arbitrary pong frames at any time
as a unidirectional heartbeat. With the connection's previous
implementation of websocket pinging, this would result in a disconnect
because the connection thought the server had missed its pong.

The current implementation only results in false positives, not
negatives, if the server accidentally sends an unprompted pong with the
same payload as our last ping. It can be debated whether this is an
actual *false* positive or just a plain positive though as the server is
still alive.
2022-08-20 20:02:18 +02:00
47b9f5938c Add todo about ws pong handling 2022-08-19 23:38:55 +02:00
73949f56fc Reduce required features of future crate 2022-08-18 18:30:25 +02:00
cab82cf775 Remove dependency on rand 2022-08-18 18:28:56 +02:00
643da74bcc Normalize imports 2022-08-18 17:49:49 +02:00
b2903f5d55 Hide replies module 2022-08-18 17:49:23 +02:00
ca83e8c68a Reexport conn::wrap at crate root 2022-08-18 17:49:00 +02:00
cfea721836 Add simple example bot named TestBot 2022-08-18 17:31:35 +02:00
f12b28b121 Make ignoring server reply easier 2022-08-18 17:30:46 +02:00
4dcf09a136 Implement Display for UserId 2022-08-18 17:16:43 +02:00
e771d24575 Implement Display and FromStr for Snowflake 2022-08-18 17:16:36 +02:00
f2cc06b147 Remove dependency on anyhow 2022-08-18 15:41:59 +02:00
c4bde36f40 Remove dependency on log 2022-08-18 15:23:04 +02:00
1495095fa8 Copy euph-api-related parts from cove
Also includes the required dependencies and some minor changes to the
module structure, as well as all the clippy and rustc warnings.
2022-08-18 00:46:16 +02:00
629ce3ceb9 Create project 2022-08-18 00:25:02 +02:00