MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / connect

Function connect

src/plugins/websocket/www/websocket.js:141–145  ·  view source on GitHub ↗
(url, protocols = null, headers = null, binaryType)

Source from the content-addressed store, hash-verified

139WebSocketInstance.CLOSED = 3;
140
141const connect = function(url, protocols = null, headers = null, binaryType) {
142 return new Promise((resolve, reject) => {
143 exec(instanceId => resolve(new WebSocketInstance(url, instanceId)), reject, "WebSocketPlugin", "connect", [url, protocols, binaryType, headers]);
144 });
145};
146
147const listClients = function() {
148 return new Promise((resolve, reject) => {

Callers

nothing calls this directly

Calls 2

resolveFunction · 0.85
execFunction · 0.50

Tested by

no test coverage detected