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
Sebastian Dröge
b4d5a9e84e
Add API for connecting and creating clients with a custom TLS connector
...
Fixes https://github.com/sdroege/async-tungstenite/issues/2
5 years ago
Sebastian Dröge
26099f2754
Test async-native-tls and --no-default-features builds on the CI
5 years ago
Sebastian Dröge
fb8bbca9ed
Add optional support for TLS via async-native-tls instead of async-tls (rustls)
...
Can be enabled with the "native-tls" feature instead of just "tls".
5 years ago
Sebastian Dröge
21411b2dc1
Add documentation link to Cargo.toml
5 years ago
Sebastian Dröge
ec71882145
Don't leak AllowStd type outside the crate
...
It's not needed as public API and an implementation detail.
5 years ago
Sebastian Dröge
ae0a324116
Remove custom WebSocketStream::close() implementation
...
Instead simply send an owned Closed message. This simplifies the code
and among other things also handles errors like WouldBlock correctly
instead of handling them like a real error.
5 years ago
Sebastian Dröge
e86a2f4ae7
Remove WebSocketStream::send()
...
The same functionality is already provided via StreamExt::send() and
unlike the custom implementation it handles WouldBlock correctly and not
as an error.
5 years ago
Sebastian Dröge
9bf555ed07
Update version to 0.2.0
5 years ago
Sebastian Dröge
016d365829
Release 0.1.1
5 years ago
Sebastian Dröge
6eaadd613b
Remove unused bytes dependency
5 years ago
Sebastian Dröge
9b7f7a02c0
Use #[pin_project] in stream implementation to get rid of remaining unsafe code
...
Now the whole crate has no unsafe code left.
5 years ago
Sebastian Dröge
93d4b35d4d
Remove unused #[pin_project] attribute
5 years ago
Sebastian Dröge
69d9a0c364
Update dependencies
5 years ago
Sebastian Dröge
9f3a1ee30b
Add proxy waiters to allow the Stream to trigger AsyncWrite operations
...
As a side effect also gets rid of unsafe code and raw pointers.
We have the problem that external read operations (i.e. the Stream impl)
can trigger both read (AsyncRead) and write (AsyncWrite) operations on
the underyling stream. At the same time write operations (i.e. the Sink
impl) can trigger write operations (AsyncWrite) too.
Both the Stream and the Sink can be used on two different tasks, but it
is required that AsyncRead and AsyncWrite are only ever used by a single
task (or better: with a single waker) at a time.
Doing otherwise would cause only the latest waker to be remembered, so
in our case either the Stream or the Sink impl would potentially wait
forever to be woken up because only the other one would've been woken
up.
To solve this we implement a waker proxy that has two slots (one for
read, one for write) to store wakers. One waker proxy is always passed
to the AsyncRead, the other to AsyncWrite so that they will only ever
have to store a single waker, but internally we dispatch any wakeups to
up to two actual wakers (one from the Sink impl and one from the Stream
impl).
5 years ago
Danny Browning
dc9c1b3d5f
Remove trace on start send
5 years ago
Danny Browning
8ed45bc110
More logging
5 years ago
Atul Bhosale
eb2c63ee73
Format code using 'cargo fmt'
5 years ago
Danny Browning
6cdf141a02
Build with no default features, examples still require default features
5 years ago
Sebastian Dröge
6ed543c8bf
Update to tungstenite 0.9.2 instead of tracking git master
5 years ago
Danny Browning
3ccd307be3
Update to work on stable
5 years ago
Sebastian Dröge
1764a42b19
Update to pin-project 0.4
5 years ago
Sebastian Dröge
b76d8cbc03
Port/rename to async-std / async-tungstenite
5 years ago
Danny Browning
0c2779965d
Add tcp dependency for net
5 years ago
Danny Browning
1cbac51d14
Bringing splitting back
5 years ago
Danny Browning
46ac847977
Use tokio built in dns
5 years ago
Danny Browning
3821e0952a
Tokio 0.2 Conversion
...
Update to use tokio 0.2 ecosystem to integrate with tungstenite.
5 years ago
Daniel Abramov
59ca2c885e
Merge pull request #65 from vorot93/rust-2018
...
Upgrade to Rust 2018, format the code
5 years ago
Artem Vorotnikov
9bd5f01784
Upgrade to Rust 2018, format the code
5 years ago
Daniel Abramov
9cf7243860
Merge pull request #63 from najamelan/cleanup
...
Cleanup
5 years ago
Naja Melan
380f531d86
Fix some clippy warnings about unnecessary closures for more concise code
5 years ago
Naja Melan
0793764dcd
Add `dyn` to silence compiler warnings
5 years ago
Daniel Abramov
52f74684ee
Bump version
5 years ago
Daniel Abramov
952b4b2410
Update to the new `tungstenite-rs`
5 years ago
Alexey Galakhov
09ba8d733f
Version 0.8.0 released.
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
6 years ago
Alexey Galakhov
8b13cb7ad3
test: add autobahn tests
...
Signed-off-by: Alexey Galakhov <agalakhov@snapview.de>
6 years ago
Daniel Abramov
e2cdf11bc8
Update to the latest `tungstenite-rs` version
6 years ago
Daniel Abramov
4c60589773
Merge pull request #57 from dfaust/master
...
Depend on tungstenite master branch
6 years ago
Daniel Faust
334148fff5
Depend on tungstenite master branch
6 years ago
Alexey Galakhov
203fa0b2bd
Merge pull request #54 from nimiq/jeff/upstream_get_remote_address
...
Implement support to get the remote address
6 years ago