Skip to content

Commit aa332ea

Browse files
committed
Fix documentation
Now we don't care - ws:// or wss://
1 parent 84de369 commit aa332ea

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22

33
name = "websocket"
4-
version = "0.7.0"
4+
version = "0.7.1"
55
authors = ["cyderize <[email protected]>"]
66

77
description = "A WebSocket (RFC6455) library for Rust."

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Rust-WebSocket attempts to provide a framework for WebSocket connections (both c
1010
To add a library release version from [crates.io](https://crates.io/crates/websocket) to a Cargo project, add this to the 'dependencies' section of your Cargo.toml:
1111

1212
```INI
13-
websocket = "~0.7.0"
13+
websocket = "~0.7.1"
1414
```
1515

1616
To add the library's Git repository to a Cargo project, add this to your Cargo.toml:

src/ws/handshake/request.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ extern crate url;
55

66
use super::util::{ReadUntilStr, HeaderCollection, ReadHttpHeaders, WriteHttpHeaders};
77
use super::version::HttpVersion;
8+
use serialize::base64::{ToBase64, STANDARD};
89
use url::{Url, ParseResult, ParseError};
9-
use std::fmt::Show;
10-
use std::rand;
1110
use std::io::{Reader, Writer, IoResult, IoError, IoErrorKind};
12-
use serialize::base64::{ToBase64, STANDARD};
1311
use std::clone::Clone;
12+
use std::fmt::Show;
13+
use std::rand;
1414

1515
/// Represents a WebSocket handshake request, which is sent from the client to the server.
1616
/// Use the new() function to create a new request, and send it with the WebSocketClient::connect() function.
@@ -39,7 +39,7 @@ pub struct WebSocketRequest {
3939

4040
impl WebSocketRequest {
4141
/// Creates a new WebSocket handshake request for use with WebSocketClient::connect().
42-
/// The URI should use the ws:// scheme (wss:// not supported at this time).
42+
/// The URI should use the ws:// or wss:// scheme.
4343
pub fn new<A: Show>(uri: &str, protocols: &[A]) -> ParseResult<WebSocketRequest> {
4444
let ws_uri = match Url::parse(uri) {
4545
Ok(uri) => { uri }

0 commit comments

Comments
 (0)