SolanaSocketEventsDelegate - p2p-org/solana-swift GitHub Wiki
SolanaSocketEventsDelegate
Delegate for listening socket's events
public protocol SolanaSocketEventsDelegate: AnyObject
Inheritance
AnyObject
Requirements
connected()
func connected()
nativeAccountNotification(notification:β)
func nativeAccountNotification(notification: SocketNativeAccountNotification)
tokenAccountNotification(notification:β)
func tokenAccountNotification(notification: SocketTokenAccountNotification)
programNotification(notification:β)
func programNotification(notification: SocketProgramAccountNotification)
signatureNotification(notification:β)
func signatureNotification(notification: SocketSignatureNotification)
logsNotification(notification:β)
func logsNotification(notification: SocketLogsNotification)
unsubscribed(id:β)
func unsubscribed(id: String)
subscribed(socketId:βid:β)
func subscribed(socketId: UInt64, id: String)
disconnected(reason:βcode:β)
func disconnected(reason: String, code: Int)
error(error:β)
func error(error: Error?)