MCPcopy
hub / github.com/websockets/ws / accept

Method accept

lib/permessage-deflate.js:115–123  ·  view source on GitHub ↗

* Accept an extension negotiation offer/response. * * @param {Array} configurations The extension negotiation offers/reponse * @return {Object} Accepted configuration * @public

(configurations)

Source from the content-addressed store, hash-verified

113 * @public
114 */
115 accept(configurations) {
116 configurations = this.normalizeParams(configurations);
117
118 this.params = this._isServer
119 ? this.acceptAsServer(configurations)
120 : this.acceptAsClient(configurations);
121
122 return this.params;
123 }
124
125 /**
126 * Releases all resources used by the extension.

Callers 5

handleUpgradeMethod · 0.95
initAsClientFunction · 0.80
receiver.test.jsFile · 0.80
sender.test.jsFile · 0.80

Calls 3

normalizeParamsMethod · 0.95
acceptAsServerMethod · 0.95
acceptAsClientMethod · 0.95

Tested by

no test coverage detected