diff --git a/Cargo.toml b/Cargo.toml index e231a0c..8991d29 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "ws2" +name = "tungstenite" version = "0.1.0" authors = ["Alexey Galakhov"] diff --git a/examples/autobahn-client.rs b/examples/autobahn-client.rs index 1725403..cbaee5c 100644 --- a/examples/autobahn-client.rs +++ b/examples/autobahn-client.rs @@ -1,14 +1,14 @@ #[macro_use] extern crate log; extern crate env_logger; -extern crate ws2; +extern crate tungstenite; extern crate url; use url::Url; -use ws2::protocol::Message; -use ws2::client::connect; -use ws2::handshake::Handshake; -use ws2::error::{Error, Result}; +use tungstenite::protocol::Message; +use tungstenite::client::connect; +use tungstenite::handshake::Handshake; +use tungstenite::error::{Error, Result}; const AGENT: &'static str = "WS2-RS"; diff --git a/examples/autobahn-server.rs b/examples/autobahn-server.rs index 8d0ac03..0e5aac2 100644 --- a/examples/autobahn-server.rs +++ b/examples/autobahn-server.rs @@ -1,13 +1,13 @@ #[macro_use] extern crate log; extern crate env_logger; -extern crate ws2; +extern crate tungstenite; use std::net::{TcpListener, TcpStream}; use std::thread::spawn; -use ws2::server::accept; -use ws2::error::Result; -use ws2::handshake::Handshake; +use tungstenite::server::accept; +use tungstenite::error::Result; +use tungstenite::handshake::Handshake; fn handle_client(stream: TcpStream) -> Result<()> { let mut socket = accept(stream).handshake_wait()?; diff --git a/examples/client.rs b/examples/client.rs index 064cb1f..f5a7964 100644 --- a/examples/client.rs +++ b/examples/client.rs @@ -1,11 +1,11 @@ -extern crate ws2; +extern crate tungstenite; extern crate url; extern crate env_logger; use url::Url; -use ws2::protocol::Message; -use ws2::client::connect; -use ws2::handshake::Handshake; +use tungstenite::protocol::Message; +use tungstenite::client::connect; +use tungstenite::handshake::Handshake; fn main() { env_logger::init().unwrap();