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

Function close

src/plugins/websocket/www/websocket.js:182–186  ·  view source on GitHub ↗
(instanceId, code, reason)

Source from the content-addressed store, hash-verified

180 * @returns {Promise} A promise that resolves when the close operation has completed.
181 */
182const close = function(instanceId, code, reason) {
183 return new Promise((resolve, reject) => {
184 exec(resolve, reject, "WebSocketPlugin", "close", [instanceId, code, reason]);
185 });
186};
187
188module.exports = { connect, listClients, send, close, DEBUG };

Callers

nothing calls this directly

Calls 1

execFunction · 0.50

Tested by

no test coverage detected