Skip to content

SNConnection

Ju Liaoyuan edited this page Dec 20, 2022 · 1 revision

SNConnection Class Reference

  Inherits from NSObject
  Declared in SNConnection.h

SNConnection.m

Tasks

– initWithConfigModel:

– updateConfigModel:

– enter

– msgSubject

– sendWithMsgModel:

– connectionStateChanged

Instance Methods

connectionStateChanged

连接状态改变回调。 返回值参见 SRConnState 枚举

- (RACSubject *)connectionStateChanged

Discussion

连接状态改变回调。 返回值参见 SRConnState 枚举

Declared In

  • SNConnection.h

enter

进入长连房间

- (RACSignal *)enter

Discussion

进入长连房间

Declared In

  • SNConnection.h

initWithConfigModel:

初始化配置

- (instancetype)initWithConfigModel:(SNConfigModel *)*configModel*

Parameters

configModel
   后台下发配置,@see SNConfigModel

Discussion

初始化配置

Declared In

  • SNConnection.h

msgSubject

收到消息

- (RACSubject *)msgSubject

Discussion

收到消息

Declared In

  • SNConnection.h

sendWithMsgModel:

未实现 发送消息

- (RACSignal *)sendWithMsgModel:(SRMsgSendModel *)*msgModel*

Parameters

msgModel
   消息

Declared In

  • SNConnection.h

updateConfigModel:

更新配置

- (RACSignal *)updateConfigModel:(SNConfigModel *)*configModel*

Parameters

configModel
   配置,@see SNConfigModel

Discussion

更新配置

Declared In

  • SNConnection.h
Clone this wiki locally