MCPcopy Create free account
hub / github.com/mitmproxy/mitmproxy / constructor

Method constructor

web/src/js/backends/websocket.tsx:52–59  ·  view source on GitHub ↗
(store)

Source from the content-addressed store, hash-verified

50 messageQueue: Action[];
51
52 constructor(store) {
53 this.activeFetches = {};
54 this.store = store;
55 this.filterState = initialFilterState;
56 this.messageQueue = [];
57 this.connect();
58 this.store.subscribe(this.onStoreUpdate.bind(this));
59 }
60
61 connect() {
62 this.socket = new WebSocket(

Callers

nothing calls this directly

Calls 3

connectMethod · 0.95
subscribeMethod · 0.80
bindMethod · 0.80

Tested by

no test coverage detected