CloseFrame
struct CloseFrame
A websocket close frame.
Methods
Returns the close reason of the close frame.
Returns the close reason of the close frame.
Returns the close reason of the close frame.
Returns the close code of the close frame.
Returns the close code of the close frame.
Returns the close code of the close frame.
new
pub fn new(code: int, reason: string): CloseFrame
Create a new close frame.
new
pub fn new(code: int, reason: string): CloseFrame
Create a new close frame.
Create a new close frame.