WebSocketStorage
class WebSocketStorageThis is the datatype that gets stored in UserCacheStorage. Vapor’s Services API uses this. Making this a class instead of a struct. This prevents internal modifications (e.g. adding/removing a value from the dicts) from causing the entire app.storage getting copied, in the case where app.storage is a value type composed of other value types. The custom setter for app.storage is not thread-safe. So, this is a workaround for app.storage having a non-thread-safe setter.
- 
                  
                  DeclarationSwift var notificationSockets: [UUID : [UserSocket]]
- 
                  
                  DeclarationSwift var fezSockets: [UUID : [UserSocket]]
- 
                  
                  DeclarationSwift func getSockets<T>(_ userIDs: T) -> [UserSocket] where T : Sequence, T.Element == <<error type>>
- 
                  
                  DeclarationSwift func forwardToSockets(users: [UUID], type: NotificationType, info: String)
 View on GitHub
            View on GitHub
           WebSocketStorage Class Reference
      WebSocketStorage Class Reference