MCPcopy Index your code
hub / github.com/buildbot/buildbot / open

Method open

www/data-module/src/data/DataCollection.ts:83–98  ·  view source on GitHub ↗
(restPath: string, query: Query, accessor: IDataAccessor,
       descriptor: IDataDescriptor<DataType>, webSocketClient: WebSocketClient)

Source from the content-addressed store, hash-verified

81 }
82
83 open(restPath: string, query: Query, accessor: IDataAccessor,
84 descriptor: IDataDescriptor<DataType>, webSocketClient: WebSocketClient) {
85 this.restPath = restPath;
86 this.query = query;
87 this.accessor = accessor;
88 this.webSocketClient = webSocketClient;
89 this.socketPath = socketPath(this.restPath);
90 this.endpoint = endpointPath(this.restPath);
91 this.socketPathRE = socketPathRE(this.socketPath);
92 this.queryExecutor = new DataQuery(this.query);
93 this.descriptor = descriptor;
94
95 webSocketClient.eventStream.subscribe(this.listener.bind(this));
96 this.accessor.registerCollection(this);
97 this.isOpen = true;
98 }
99
100 close() {
101 if (this.isOpen) {

Callers 3

createCollectionFunction · 0.95
getMethod · 0.95
createCollectionMethod · 0.95

Calls 5

socketPathFunction · 0.90
endpointPathFunction · 0.90
socketPathREFunction · 0.90
subscribeMethod · 0.65
registerCollectionMethod · 0.65

Tested by 1

createCollectionFunction · 0.76