MCPcopy
hub / github.com/browserless/browserless / setToken

Method setToken

src/config.ts:622–625  ·  view source on GitHub ↗
(newToken: string | null)

Source from the content-addressed store, hash-verified

620 }
621
622 public setToken(newToken: string | null): string | null {
623 this.emit('token', newToken);
624 return (this.token = newToken);
625 }
626
627 public setTimeout(newTimeout: number): number {
628 this.emit('timeout', newTimeout);

Callers 15

mainFunction · 0.95
startFunction · 0.80
websocket.spec.tsFile · 0.80
content.spec.tsFile · 0.80
scrape.spec.tsFile · 0.80
function.spec.tsFile · 0.80
json.spec.tsFile · 0.80
startFunction · 0.80
websocket.spec.tsFile · 0.80

Calls 1

emitMethod · 0.80

Tested by 6

startFunction · 0.64
startFunction · 0.64
startFunction · 0.64
startFunction · 0.64
startFunction · 0.64
startFunction · 0.64