Initializermochidev.swift-webpush 0.4.2WebPush
init(encodableTopic:salt:)
Create a new topic from encodable data and a salt.
init(encodableTopic: some Encodable, salt: some DataProtocol) throws
Parameters
- encodableTopic
The encodable data that represents a stable topic. This can be a string, identifier, or any other token that can be encoded.
- salt
The salt that should be used when encoding the topic.