FMWebSocketCloseArgs Class Reference

Inherits from FMDynamic : FMSerializable : NSObject
Declared in FM.h

Overview

Close arguments for the class.

– init

Creates a new instance of with default values.

- (id)init

Discussion

Creates a new instance of with default values.

Declared In

FM.h

– onComplete

Gets the callback to execute when the connection is closed.

- (FMCallback *)onComplete

Discussion

Gets the callback to execute when the connection is closed.

Declared In

FM.h

– reason

Gets the reason to send with the close frame.

- (NSString *)reason

Discussion

Gets the reason to send with the close frame.

Declared In

FM.h

– setOnComplete:

Sets the callback to execute when the connection is closed.

- (void)setOnComplete:(FMCallback *)value

Discussion

Sets the callback to execute when the connection is closed.

Declared In

FM.h

– setOnCompleteBlock:

Sets the callback to execute when the connection is closed.

- (void)setOnCompleteBlock:(void ( ^ ) ( FMWebSocketCloseCompleteArgs *))valueBlock

Discussion

Sets the callback to execute when the connection is closed.

Declared In

FM.h

– setReason:

Sets the reason to send with the close frame.

- (void)setReason:(NSString *)value

Discussion

Sets the reason to send with the close frame.

Declared In

FM.h

– setStatusCode:

Sets the status code to send with the close frame.

- (void)setStatusCode:(FMWebSocketStatusCode)value

Discussion

Sets the status code to send with the close frame.

Declared In

FM.h

– statusCode

Gets the status code to send with the close frame.

- (FMWebSocketStatusCode)statusCode

Discussion

Gets the status code to send with the close frame.

Declared In

FM.h

+ webSocketCloseArgs

Creates a new instance of with default values.

+ (FMWebSocketCloseArgs *)webSocketCloseArgs

Discussion

Creates a new instance of with default values.

Declared In

FM.h