LiveClientDelegate
public protocol LiveClientDelegate
Receive LiveClient events
-
Connection is open
Declaration
Swift
func clientDidConnect(_ client:LiveClient)Parameters
clientReference to the LiveCLient *
-
The client is trying to reconnect
Declaration
Swift
func clientWillReconnect(_ client:LiveClient)Parameters
clientReference to the LiveCLient *
-
The client has disconnected
Declaration
Swift
func clientDidDisconnect(_ client:LiveClient)Parameters
clientReference to the LiveCLient *
-
Received a Reply from Flow.ai
Declaration
Swift
func client(_ client:LiveClient, didReceiveReply reply: Reply)Parameters
clientReference to the LiveCLient
replyReply message *
-
Client just send a message to Flow.ai
Declaration
Swift
func client(_ client:LiveClient, didSendMessage message: Message)Parameters
clientReference to the LiveCLient
messageMessage being send *
-
The message being send was delivered to Flow.ai
Declaration
Swift
func client(_ client:LiveClient, didDeliverMessage message: Message)Parameters
clientReference to the LiveCLient
messageMessage that was delivered *
-
An error occured
Declaration
Swift
func client(_ client:LiveClient, didReceiveError error: Error)Parameters
errorThe error *
-
History has been loaded
Declaration
Swift
func client(_ client:LiveClient, didReceiveHistory history: [Reply])Parameters
historyA collection of Reply objects *
View on GitHub
Install in Dash
LiveClientDelegate Protocol Reference