/var/www/myprog.com.ua/server/node/node_modules/ws/lib
NameSizeModeActions
browser.js8310644editdlrm
BufferPool.js16630644editdlrm
BufferUtil.fallback.js14210644editdlrm
BufferUtil.js4490644editdlrm
ErrorCodes.js7130644editdlrm
Receiver.hixie.js38470644editdlrm
Receiver.js167350644editdlrm
Sender.hixie.js29400644editdlrm
Sender.js57780644editdlrm
Validation.fallback.js2100644editdlrm
Validation.js4490644editdlrm
WebSocket.js235810644editdlrm
WebSocketServer.js138400644editdlrm
Edit: /var/www/myprog.com.ua/server/node/node_modules/ws/lib/browser.js (831B)
/** * Module dependencies. */ var global = (function() { return this; })(); /** * WebSocket constructor. */ var WebSocket = global.WebSocket || global.MozWebSocket; /** * Module exports. */ module.exports = WebSocket ? ws : null; /** * WebSocket constructor. * * The third `opts` options object gets ignored in web browsers, since it's * non-standard, and throws a TypeError if passed to the constructor. * See: https://github.com/einaros/ws/issues/227 * * @param {String} uri * @param {Array} protocols (optional) * @param {Object) opts (optional) * @api public */ function ws(uri, protocols, opts) { var instance; if (protocols) { instance = new WebSocket(uri, protocols); } else { instance = new WebSocket(uri); } return instance; } if (WebSocket) ws.prototype = WebSocket.prototype;