mirror of https://github.com/fafhrd91/actix-web
Merge branch 'master' of github.com:pyros2097/actix-web
This commit is contained in:
commit
331f66c490
|
@ -43,7 +43,7 @@ fn main() {
|
|||
```
|
||||
|
||||
Simple websocket echo server example is available in
|
||||
[examples directory](https://github.com/actix/actix-web/blob/master/examples/websocket.rs).
|
||||
[examples directory](https://github.com/actix/actix-web/blob/master/examples/websocket).
|
||||
|
||||
Example chat server with ability to chat over websocket connection or tcp connection
|
||||
is available in [websocket-chat directory](https://github.com/actix/actix-web/tree/master/examples/websocket-chat/)
|
||||
|
|
|
@ -191,7 +191,7 @@ impl Frame {
|
|||
unsafe{buf.advance_mut(2)};
|
||||
buf
|
||||
} else {
|
||||
let mut buf = BytesMut::with_capacity(p_len + 8);
|
||||
let mut buf = BytesMut::with_capacity(p_len + 10);
|
||||
buf.put_slice(&[one, two | 127]);
|
||||
{
|
||||
let buf_mut = unsafe{buf.bytes_mut()};
|
||||
|
|
Loading…
Reference in New Issue