-
Notifications
You must be signed in to change notification settings - Fork 5
SNMCRConnection
Inherits from SNConnection :
NSObject
Declared in SNMCRConnection.h
SNMCRConnection.m
– onNotificationMessage:session:
– onConnectionStateChanged:session:
msgSubject property
connectionStateChanged property
连接状态改变回调。 返回值参见 SRConnState 枚举
@property (nonatomic, strong) RACSubject *connectionStateChanged
连接状态改变回调。 返回值参见 SRConnState 枚举
SNConnection.h
收到消息
@property (nonatomic, strong) RACSubject *msgSubject
收到消息
SNConnection.h
连接状态改变回调。 返回值参见 SRConnState 枚举
- (RACSubject *)connectionStateChanged
连接状态改变回调。 返回值参见 SRConnState 枚举
SNConnection.h
进入长连房间
- (RACSignal *)enter
进入长连房间
SNConnection.h
初始化配置
- (instancetype)initWithConfigModel:(SNConfigModel *)*configModel*
configModel
后台下发配置,@see SNConfigModel
初始化配置
SNConnection.h
收到消息
- (RACSubject *)msgSubject
收到消息
SNConnection.h
连接状态
- (void)onConnectionStateChanged:(MercuryStatus)*state* session:(nonnull MCRRoomSession *)*session*
state
状态
连接状态
SNMCRConnection.m
加入房间结果
- (void)onEnterRoom:(NSString *)*roomid* result:(nullable NSError *)*result* session:(MCRRoomSession *)*session*
roomid
房间ID
result
nil,表示成功。
加入房间结果
SNMCRConnection.m
被动退出房间
- (void)onKickRoom:(NSString *)*roomid* result:(NSData *)*result* session:(nonnull MCRRoomSession *)*session*
result
退出原因
被动退出房间
SNMCRConnection.m
收到IM指令消息
- (void)onNotificationMessage:(MCRRoomModel *)*model* session:(nonnull MCRRoomSession *)*session*
model
消息内容
收到IM指令消息
SNMCRConnection.m
收到IM普通消息
- (void)onRoomMessage:(MCRRoomModel *)*model* session:(nonnull MCRRoomSession *)*session*
model
消息内容
收到IM普通消息
SNMCRConnection.m
房间状态
- (void)onRoomStateChanged:(MCRRoomSessionState)*state* session:(nonnull MCRRoomSession *)*session*
state
状态
房间状态
SNMCRConnection.m
未实现 发送消息
- (RACSignal *)sendWithMsgModel:(SRMsgSendModel *)*msgModel*
msgModel
消息
SNConnection.h
更新配置
- (RACSignal *)updateConfigModel:(SNConfigModel *)*configModel*
configModel
配置,@see SNConfigModel
更新配置
SNConnection.h
Sona Wiki