pusher-http-rust
pusher-http-rust copied to clipboard
[Unsupported] HTTP Pusher Rust Library
- Add `rustls` feature and associated builder methods - Add user authentication method - Statically (but lazily) initialize regexes - Use an error type rather than strings A caveat is...
Implement [user authentication](https://pusher.com/docs/channels/library_auth_reference/auth-signatures/#user-authentication)
The HTTP API has no restriction on the payload, but the Rust API only allows batching with a singe payload being sent to all channels.
Some alternative servers, such as [soketi](https://soketi.app/), allow configuring the server to accept payloads larger than 10kB, however the code here will still reject it with https://github.com/WillSewell/pusher-http-rust/blob/18ba21e07fc8824b6be539f3b6f3e09b7bfae62a/src/client.rs#L337-L339 and potentially other places....
Hey! I managed to get my pusher client working by using `from_url` and specifying something like: ```rust let mut pusher = Pusher::from_url("http://:@api-.pusher.com/apps/").finalize(); ``` Currently we are also using the python...
That example in src/lib.rs seems to be out of date with the async/await changes. It compiles but doesn't do anything since the future isn't polled
I'm not sure what the login details are, so we might need to create a new account at this point.
Commit https://github.com/pusher-community/pusher-http-rust/pull/5/commits/e9f0571e014372100713cd3b8e1eb6cbcaf07a2b put the responsibility on the user to parse auth requests before generating the auth signature. We could provide this functionality again.
We should be returning `Result` with proper errors types.