Josh Matthews
00fa09ce37
Add openssl support.
4 years ago
Sebastian Dröge
3b770316d6
Work directly on the tokio AsyncRead/AsyncWrite traits and convert internally
...
Fixes https://github.com/sdroege/async-tungstenite/issues/28
4 years ago
Sebastian Dröge
b1e44a5e77
Update version to 0.8.0
4 years ago
Philippe Normand
220df7b0af
gio: Make the IOStreamAsyncReadWrite constructor private
...
Ensuring this struct can only be created internally is important, ensuring
only one reference of GIOStream is tracked.
4 years ago
Philippe Normand
be83431c2f
gio: Add Send implementation to IOStreamAsyncReadWrite
...
This is a wrapper for GSocketConnection, which should be OK to share across
threads.
4 years ago
Sebastian Dröge
8738c887c0
Add public type aliases for the stream types used by the various client-side functions
...
Fixes https://github.com/sdroege/async-tungstenite/issues/35
4 years ago
Sebastian Dröge
be8e9d898d
Don't declare internal port function when only the async-tls feature is enabled
...
warning: function is never used: `port`
--> src/lib.rs:381:15
|
381 | pub(crate) fn port(
| ^^^^
|
= note: `#[warn(dead_code)]` on by default
warning: 1 warning emitted
4 years ago
Naja Melan
e131ec4e8a
Expose the configuration of the websocket connection.
...
Allows wrapper types to respect max_message_size.
4 years ago
Heinz N. Gies
b86e6d5369
bump tungstenite to 0.11
4 years ago
Sebastian Dröge
2e6f577c7e
Switch to tokio-native-tls for the Travis CI too
5 years ago
Sebastian Dröge
929dacbbdc
Update version number to 0.6.0
5 years ago
Sebastian Dröge
29e528d1bc
Switch from deprecated tokio-tls to tokio-native-tls
5 years ago
Sebastian Dröge
cba1d7bb32
Update version to 0.5.0
...
This depends on a new version of async-tls, which breaks API.
5 years ago
Sebastian Dröge
dd57c420a4
Update version to 0.4.3
5 years ago
Marcin Pajkowski
9b5b065b1b
Derive `Debug` for `WebSocketStream<S>`
5 years ago
Cheng JIANG
3d668b5b8f
use re-expored tungstenite
5 years ago
Sebastian Dröge
5c594c0549
Forward handshake errors directly instead of wrapping them in a Other IO error
...
This allows getting HTTP status codes back to the caller, for example,
and allows proper handling of handshake errors.
5 years ago
SchrodingerZhu
a2b88e46d0
bump version
5 years ago
Mark Lodato
70c77160a9
Update example to not broadcast close messages.
...
In the event that the client sends a close message,
it is broadcast to other clients closing them as well.
5 years ago
Mark Lodato
6bffd862b6
Updates example commands to include async features
...
Due to the error: "target `XXX` in package `async-tungstenite`
requires the features: `async-std-runtime`".
Also updated the echo-server example command to start echo-server
instead of server.
5 years ago
Sebastian Dröge
f36c55b3f5
Update version to 0.4.2
5 years ago
Sebastian Dröge
6398b27044
Add the "std" feature to the futures-io dependency
...
Otherwise AsyncRead/AsyncWrite are not available.
Fixes https://github.com/sdroege/async-tungstenite/issues/18
5 years ago
Sebastian Dröge
60ea29ff03
Update version to 0.4.1
5 years ago
Erich Gubler
d4eea7211c
build(deps): minimize unnecessary dependencies by using `futures-{channel,io,util}` directly instead of `futures` outside of tests/examples
5 years ago
Ilya Baryshnikov
9741f0eb83
One more link changed
5 years ago
Ilya Baryshnikov
a62f74ac89
Fix warning for gio link
...
I have a warning with `https://www.gtk-rs.org/ `, but `https://gtk-rs.org/ ` seems to work fine. Getting the same result in different browsers
5 years ago
Naja Melan
249dbf7f2d
Advertise not using unsafe code.
5 years ago
Naja Melan
17ceebb5dc
Add required feature for example async-std-echo.
...
Allows `cargo +nightly test` without any features.
5 years ago
Naja Melan
2d1bf51e7d
fix clippy warning
5 years ago
Naja Melan
6015bf5f7b
error.description is deprecated as of current nightly.
5 years ago
Naja Melan
bfbb94030a
Don't project if you require Unpin.
...
This doesn't make sense. For Unpin types, Pin does nothing, so Pin::new() is sufficient.
However Pin::new is only implemented for `Pin<P> where <P as Deref>::Target: Unpin`, so if it weren't Unpin,
you would have to use unsafe { Pin::new_unchecked(s) }, `Pin::new()` wouldn't compile.
Thus project and Pin::new together is always a code smell.
5 years ago
Sebastian Dröge
a65c53b6cd
Fix clippy warning about ok_or() followed by a function call
...
warning: use of `ok_or` followed by a function call
--> src/lib.rs:379:10
|
379 | .ok_or(tungstenite::Error::Url("Url scheme not supported".into()))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `ok_or_else(|| tungstenite::Error::Url("Url scheme not supported".into()))`
5 years ago
hbgl
42d6771357
Add example of server periodically updating client
5 years ago
Sebastian Dröge
3a994e6e3b
Update to tungstenite 0.10
...
Partially based on tungstenite commits
- 46dfd9ed3ee75b0261e9f5f71c8e70492407248b by Alexey Galakhov
- 31010fd636b3edc683199e3182ea34d799118d5b by Alexey Galakhov
5 years ago
Alexey Galakhov
016f21f5b4
tests: do not report expected autobahn errors
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
5 years ago
Kelly Thomas Kline
40757271f0
Add examples README.md
...
As mentioned at https://github.com/sdroege/async-tungstenite/pull/3 , a later PR could add a brief description to each example.
5 years ago
Daniel Abramov
40943ec32c
examples: improve client example
5 years ago
Daniel Abramov
c02a5399b2
examples: improve server example
5 years ago
Alexey Galakhov
ca6d02a9a2
travis: force build fail on autobahn failure
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
5 years ago
Alexey Galakhov
5d44a92fdf
autobahn: don't panic in server
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
5 years ago
Alexey Galakhov
418d6d87bb
autobahn: don't panic in client
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
5 years ago
Nathan Torchia
744c7fd124
Added server example
5 years ago
Sebastian Dröge
6a9914b9da
Update version to 0.3.1
5 years ago
wolf4ood
0c749aeeb0
Restored stream pub visibility
5 years ago
Sebastian Dröge
c2ff77b446
Refactor features and optional API and add support for tokio/gio async runtimes
5 years ago
Sebastian Dröge
5613f9e47d
Directly pass socket address strings to the connect/bind functions
5 years ago
Sebastian Dröge
c2374308b0
Fix various clippy warnings
5 years ago
Daniel Abramov
4a71349d38
Clean up examples
5 years ago
Sebastian Dröge
74a5094df5
Release 0.2.1
5 years ago
Sebastian Dröge
c647de44ef
Add client_async_tls and connect_async variants with WebSocketConfig parameter
5 years ago