Struct websocket_client::Socket[][src]

pub struct Socket { /* fields omitted */ }

Methods

impl Socket
[src]

Creates a new Socket.

Sends a textual message.

Sends a binary message.

Returns all messages that have been received since the last call to this function.

Returns an Err if there's be an error or the Socket has been disconnected, or Some(vec![]) if no messages have been received. If this returns Err, this Socket should no longer be used.

Auto Trait Implementations

impl !Send for Socket

impl !Sync for Socket