Sergio Benitez
d9f86d8647
Fully document the 'ws' contrib crate.
2023-04-03 16:09:45 -07:00
Sergio Benitez
7d895eb9f6
Add initial implementation of 'rocket_ws'.
...
This provides WebSocket support in Rocket's official 'contrib'.
2023-04-01 15:02:24 -07:00
Sergio Benitez
847e87d5c9
Make 'ws::Stream![]' mean 'ws::Stream!['static]'.
...
This is in line with the stream macros in Rocket core.
2023-03-31 08:34:45 -07:00
Sergio Benitez
1d2cc257dc
Preprocess tungstenite 'ConnectionClosed' errors.
...
Tungstenite abuses `Err(ConnectionClosed)` to indicate the non-error
condition of a websocket closing. This commit changes error processing
such that the error is caught and converted into a successful
termination of websocket handling.
2023-03-30 16:08:31 -07:00
Sergio Benitez
64a7bfb37c
Fix header lookups for connection upgrades.
2023-03-30 16:08:14 -07:00
Sergio Benitez
2abddd923e
Implement stream websocket API in upgrade example.
2023-03-30 12:48:20 -07:00
Sergio Benitez
bd482081ad
Add 'upgrade' example with WebSocket support.
...
This is an initial example that showcases using the new connection
upgrade API to implement WebSocket support outside of Rocket's core.
2023-03-29 17:07:01 -07:00