onError (event)
This event is fired when the server sends a protocol error message.
Syntax
- (void)onError:(int)errorCode :(NSString*)description;
func onError(_ errorCode: Int32, _ description: String)
Remarks
This is fired whenever there is a protocol error. ErrorCode will contain the error code string sent by the server. Description will contain the Xmpp class's interpretation of the code.