unsubscribe(type_socketId_) - p2p-org/solana-swift GitHub Wiki

unsubscribe(type:socketId:)

Unsubscribe to an entity ('account', 'program', 'signature', for example)

@discardableResult public func unsubscribe(type entity: SocketEntity, socketId: UInt64)

Parameters

  • type: type of entity, '.account', '.program',...
  • socketId: id of the subscription

Returns

id of the request