WASM compatibilty

This commit is contained in:
jasonwitty 2025-09-08 12:29:03 -07:00
parent f59c28d966
commit e4186a7ec0
2 changed files with 9 additions and 9 deletions

View File

@ -3,7 +3,7 @@
//! This example demonstrates how to use the connector without TLS dependencies //! This example demonstrates how to use the connector without TLS dependencies
//! for WebAssembly builds. //! for WebAssembly builds.
use socktop_connector::{connect_to_socktop_agent, ConnectorConfig, AgentRequest}; use socktop_connector::{AgentRequest, ConnectorConfig, connect_to_socktop_agent};
#[tokio::main] #[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> { async fn main() -> Result<(), Box<dyn std::error::Error>> {

View File

@ -6,8 +6,8 @@ use prost::Message as _;
use std::io::Read; use std::io::Read;
use tokio::net::TcpStream; use tokio::net::TcpStream;
use tokio_tungstenite::{ use tokio_tungstenite::{
MaybeTlsStream, WebSocketStream, connect_async, MaybeTlsStream, WebSocketStream, connect_async, tungstenite::Message,
tungstenite::Message, tungstenite::client::IntoClientRequest, tungstenite::client::IntoClientRequest,
}; };
use url::Url; use url::Url;