Methods
close
pub fn close(self, close_frame: CloseFrame? = nil) throws WebsocketError
[src]
pub fn close(self, close_frame: CloseFrame? = nil) throws WebsocketError {
try (self as _Websocket).close(close_frame);
}
Closes the websocket connection.
close
pub fn close(self, close_frame: CloseFrame? = nil) throws WebsocketError
[src]
pub fn close(self, close_frame: CloseFrame? = nil) throws WebsocketError {
try (self as _Websocket).close(close_frame);
}
Closes the websocket connection.
Closes the websocket connection.
recv
pub fn recv(self): Message? throws WebsocketError
[src]
pub fn recv(self): Message? throws WebsocketError {
return try (self as _Websocket).recv();
}
Receives a message.
recv
pub fn recv(self): Message? throws WebsocketError
[src]
pub fn recv(self): Message? throws WebsocketError {
return try (self as _Websocket).recv();
}
Receives a message.
Receives a message.
Returns nil
if the connection is closed.
send
pub fn send(self, message: Message) throws WebsocketError
[src]
pub fn send(self, message: Message) throws WebsocketError {
try (self as _Websocket).send(message);
}
Sends a message.
send
pub fn send(self, message: Message) throws WebsocketError
[src]
pub fn send(self, message: Message) throws WebsocketError {
try (self as _Websocket).send(message);
}
Sends a message.
Sends a message.
sub_protocol
pub fn sub_protocol(self): string?
[src]
pub fn sub_protocol(self): string? {
return (self as _Websocket).sub_protocol();
}
Returns the sub protocol.
sub_protocol
pub fn sub_protocol(self): string?
[src]
pub fn sub_protocol(self): string? {
return (self as _Websocket).sub_protocol();
}
Returns the sub protocol.
Returns the sub protocol.