9 lines
230 B
Swift
9 lines
230 B
Swift
|
import Foundation
|
||
|
|
||
|
protocol XmppModule: Identifiable {
|
||
|
var id: String { get }
|
||
|
|
||
|
func reduce(oldState: ClientState, with event: Event) -> ClientState
|
||
|
func process(state: ClientState, with event: Event) async -> Event?
|
||
|
}
|