Skip to content

Commit

Permalink
Fix #288
Browse files Browse the repository at this point in the history
  • Loading branch information
c410-f3r committed Dec 21, 2024
1 parent a0de4f2 commit 2e45c84
Show file tree
Hide file tree
Showing 50 changed files with 794 additions and 1,040 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
**/profile.json
**/rustc-ice-*.txt
**/target
boringssl
mdbook-target
wtx-docs/book
wtx-fuzz/artifacts
Expand Down
109 changes: 54 additions & 55 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions wtx-instances/generic-examples/client-api-framework.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ use tokio::net::TcpStream;
use wtx::{
client_api_framework::{
misc::{Pair, RequestLimit, RequestThrottling},
network::{transport::Transport, HttpParams, WsParams},
network::{transport::SendingRecievingTransport, HttpParams, WsParams},
Api,
},
data_transformation::dnsn::SerdeJson,
http::client_framework::ClientFrameworkTokio,
misc::{simple_seed, Uri, Xorshift64},
web_socket::{WebSocketBuffer, WebSocketClient},
web_socket::{WebSocket, WebSocketBuffer},
};

wtx::create_packages_aux_wrapper!();
Expand Down Expand Up @@ -97,11 +97,11 @@ async fn http_pair(
async fn web_socket_pair() -> wtx::Result<
Pair<
PkgsAux<GenericThrottlingApi, SerdeJson, WsParams>,
WebSocketClient<(), TcpStream, WebSocketBuffer>,
WebSocket<(), TcpStream, WebSocketBuffer, true>,
>,
> {
let uri = Uri::new("ws://generic_web_socket_uri.com");
let web_socket = WebSocketClient::connect(
let web_socket = WebSocket::connect(
(),
[],
false,
Expand Down
8 changes: 4 additions & 4 deletions wtx-instances/src/bin/autobahn-client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
use tokio::net::TcpStream;
use wtx::{
misc::{simple_seed, UriRef, Xorshift64},
web_socket::{compression::Flate2, Frame, OpCode, WebSocketBuffer, WebSocketClient},
web_socket::{compression::Flate2, Frame, OpCode, WebSocket, WebSocketBuffer},
};

#[tokio::main]
async fn main() -> wtx::Result<()> {
let host = "127.0.0.1:9080";
let mut wsb = WebSocketBuffer::default();
for case in 1..=get_case_count(host, &mut wsb).await? {
let mut ws = WebSocketClient::connect(
let mut ws = WebSocket::connect(
Flate2::default(),
[],
false,
Expand All @@ -38,7 +38,7 @@ async fn main() -> wtx::Result<()> {
}
}
}
WebSocketClient::connect(
WebSocket::connect(
(),
[],
false,
Expand All @@ -54,7 +54,7 @@ async fn main() -> wtx::Result<()> {
}

async fn get_case_count(host: &str, wsb: &mut WebSocketBuffer) -> wtx::Result<u32> {
let mut ws = WebSocketClient::connect(
let mut ws = WebSocket::connect(
(),
[],
false,
Expand Down
Loading

0 comments on commit 2e45c84

Please sign in to comment.