Method
constructor
(baseUrl: string, onLogMessage: (msg: LogItem) => void, token?: string)
Source from the content-addressed store, hash-verified
| 14 | activeSubs: string[] = []; |
| 15 | |
| 16 | constructor(baseUrl: string, onLogMessage: (msg: LogItem) => void, token?: string) { |
| 17 | this.token = token; |
| 18 | this.baseUrl = baseUrl; |
| 19 | this.onLogMessage = onLogMessage; |
| 20 | if (token) { |
| 21 | this.open(); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | setToken(token: string) { |
| 26 | this.logToOutput("updated token", "Client"); |
Callers
nothing calls this directly
Tested by
no test coverage detected