MCPcopy
hub / github.com/socketio/socket.io / decode

Function decode

packages/socket.io/client-dist/socket.io.js:767–775  ·  view source on GitHub ↗

* Parses a simple querystring into an object * * @param {String} qs * @api private

(qs)

Source from the content-addressed store, hash-verified

765 * @api private
766 */
767 function decode(qs) {
768 var qry = {};
769 var pairs = qs.split('&');
770 for (var i = 0, l = pairs.length; i < l; i++) {
771 var pair = pairs[i].split('=');
772 qry[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]);
773 }
774 return qry;
775 }
776
777 var TransportError = /*#__PURE__*/function (_Error) {
778 function TransportError(reason, description, context) {

Callers 3

constructorMethod · 0.90
decodeBase64PacketFunction · 0.90
SocketWithoutUpgradeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected