Message
struct Message
A websocket message.
close
pub fn close(self): CloseFrame??
Returns the close frame of the message, returns nil
if the message is not a close message.
close
pub fn close(self): CloseFrame??
Returns the close frame of the message, returns nil
if the message is not a close message.
Returns the close frame of the message, returns nil
if the message is not a close message.
Returns the pong content of the message, returns nil
if the message is not a pong message.
Returns the pong content of the message, returns nil
if the message is not a pong message.
Returns the pong content of the message, returns nil
if the message is not a pong message.
Returns the ping content of the message, returns nil
if the message is not a ping message.
Returns the ping content of the message, returns nil
if the message is not a ping message.
Returns the ping content of the message, returns nil
if the message is not a ping message.
Returns the binary content of the message, returns nil
if the message is not a binary message.
Returns the binary content of the message, returns nil
if the message is not a binary message.
Returns the binary content of the message, returns nil
if the message is not a binary message.
Returns the text content of the message, returns nil
if the message is not a text message.
Returns the text content of the message, returns nil
if the message is not a text message.
Returns the text content of the message, returns nil
if the message is not a text message.
new_binary
pub fn new_binary(data: Bytes): Message
Create a new binary message.
new_binary
pub fn new_binary(data: Bytes): Message
Create a new binary message.
Create a new binary message.