MCPcopy Create free account
hub / github.com/acode/cli / constructor

Method constructor

cli/registry.js:10–19  ·  view source on GitHub ↗
(host, port, accessToken)

Source from the content-addressed store, hash-verified

8class Registry {
9
10 constructor (host, port, accessToken) {
11 this.host = host;
12 this.port = parseInt(port) || 0;
13 this.accessToken = accessToken;
14 this.http = this.port === 443 ? https : http;
15 this.pusher = new Pusher('676bca06a7eb744a334f', {
16 cluster: 'us3',
17 forceTLS: true
18 });
19 }
20
21 request (action, params, body, completeCallback, progressCallback) {
22

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected