Skip to content

Commit

Permalink
BaseObserver: clients variable fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MihaelIsaev committed Feb 22, 2020
1 parent 258db0e commit ff8ad53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/WS/Observers/BaseObserver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ open class BaseObserver {
public var encoder: Encoder?
public var decoder: Decoder?

public internal(set) var clients: [AnyClient] = []
public var clients: [AnyClient] {
get { _clients }
}
var _clients: [_AnyClient] = []

public required init (app: Application, key: String, path: String, exchangeMode: ExchangeMode) {
Expand Down

0 comments on commit ff8ad53

Please sign in to comment.