MCPcopy Index your code
hub / github.com/socketio/socket.io / decode

Function decode

client-dist/socket.io.js:835–843  ·  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

833 * @api private
834 */
835 function decode(qs) {
836 var qry = {};
837 var pairs = qs.split('&');
838 for (var i = 0, l = pairs.length; i < l; i++) {
839 var pair = pairs[i].split('=');
840 qry[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]);
841 }
842 return qry;
843 }
844
845 var TransportError = /*#__PURE__*/function (_Error) {
846 _inherits(TransportError, _Error);

Callers 1

SocketFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected