MCPcopy Create free account
hub / github.com/Noumena-Network/code / constructor

Method constructor

src/remote/appServer/client.ts:255–278  ·  view source on GitHub ↗
(
    private readonly args: Required<
      Pick<
        RemoteAppServerConnectArgs,
        | 'websocketUrl'
        | 'clientName'
        | 'clientVersion'
        | 'channelCapacity'
        | 'connectTimeoutMs'
        | 'initializeTimeoutMs'
      >
    > &
      Omit<
        RemoteAppServerConnectArgs,
        | 'websocketUrl'
        | 'clientName'
        | 'clientVersion'
        | 'channelCapacity'
        | 'connectTimeoutMs'
        | 'initializeTimeoutMs'
      >,
  )

Source from the content-addressed store, hash-verified

253 private closed = false
254
255 private constructor(
256 private readonly args: Required<
257 Pick<
258 RemoteAppServerConnectArgs,
259 | 'websocketUrl'
260 | 'clientName'
261 | 'clientVersion'
262 | 'channelCapacity'
263 | 'connectTimeoutMs'
264 | 'initializeTimeoutMs'
265 >
266 > &
267 Omit<
268 RemoteAppServerConnectArgs,
269 | 'websocketUrl'
270 | 'clientName'
271 | 'clientVersion'
272 | 'channelCapacity'
273 | 'connectTimeoutMs'
274 | 'initializeTimeoutMs'
275 >,
276 ) {
277 this.events = new AsyncEventQueue(args.channelCapacity)
278 }
279
280 static async connect(args: RemoteAppServerConnectArgs): Promise<RemoteAppServerClient> {
281 if (args.authToken && !websocketUrlSupportsAuthToken(args.websocketUrl)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected