MCPcopy
hub / github.com/HelloZeroNet/ZeroNet / ZeroFrame

Function ZeroFrame

plugins/UiPluginManager/media/js/all.js:1157–1169  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

1155 extend(ZeroFrame, superClass);
1156
1157 function ZeroFrame(url) {
1158 this.onCloseWebsocket = bind(this.onCloseWebsocket, this);
1159 this.onOpenWebsocket = bind(this.onOpenWebsocket, this);
1160 this.onRequest = bind(this.onRequest, this);
1161 this.onMessage = bind(this.onMessage, this);
1162 this.url = url;
1163 this.waiting_cb = {};
1164 this.wrapper_nonce = document.location.href.replace(/.*wrapper_nonce=([A-Za-z0-9]+).*/, "$1");
1165 this.connect();
1166 this.next_message_id = 1;
1167 this.history_state = {};
1168 this.init();
1169 }
1170
1171 ZeroFrame.prototype.init = function() {
1172 return this;

Callers

nothing calls this directly

Calls 3

initMethod · 0.80
bindFunction · 0.70
connectMethod · 0.45

Tested by

no test coverage detected