Skip to content

Commit

Permalink
Update echo_ws.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
kostasgr100 authored Oct 29, 2024
1 parent e698456 commit 2ac784d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions examples/echo_ws.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ use async_uws::websocket::Websocket;
use async_uws::ws_behavior::WsRouteSettings;
use async_uws::ws_message::WsMessage;

#[tokio::main]
async fn main() {
let opts = UsSocketContextOptions {
key_file_name: None,
cert_file_name: None,
passphrase: None,
dh_params_file_name: None,
ca_file_name: None,
ssl_ciphers: None,
ssl_prefer_low_memory_usage: None,
};
fn main() {
tokio_uring::start(async {
let opts = UsSocketContextOptions {
key_file_name: None,
cert_file_name: None,
passphrase: None,
dh_params_file_name: None,
ca_file_name: None,
ssl_ciphers: None,
ssl_prefer_low_memory_usage: None,
};

let mut app = App::new(opts, None);
let compressor: u32 = CompressOptions::SharedCompressor.into();
Expand Down

0 comments on commit 2ac784d

Please sign in to comment.