mirror of
https://github.com/HaishinKit/HaishinKit.swift.git
synced 2026-05-07 20:12:28 +00:00
11 lines
356 B
Swift
11 lines
356 B
Swift
import Foundation
|
|
|
|
/// A type that represents a streaming session factory.
|
|
public protocol StreamSessionFactory {
|
|
/// The supported protocols.
|
|
var supportedProtocols: Set<String> { get }
|
|
|
|
/// Makes a new session by uri.
|
|
func make(_ uri: URL, mode: StreamSessionMode, configuration: (any StreamSessionConfiguration)?) -> any StreamSession
|
|
}
|