'use strict'; /* global self */ var url = require('url'); var querystring = require('querystring'); var getCurrentScriptSource = require('./getCurrentScriptSource'); function createSocketUrl(resourceQuery) { var urlParts; if (typeof resourceQuery === 'string' && resourceQuery !== '') { // If this bundle is inlined, use the resource query to get the correct url. urlParts = url.parse(resourceQuery.substr(1)); } else { // Else, get the url from the