{"_id":"lore-hook-websockets-sails","_rev":"50-2a57586ee2e7ed4397cdcfe43f8d6255","name":"lore-hook-websockets-sails","description":"A lore hook that add websockets support for Sails","dist-tags":{"latest":"0.13.0","next":"0.13.0-rc.2"},"versions":{"0.9.0-rc.1":{"name":"lore-hook-websockets-sails","version":"0.9.0-rc.1","license":"MIT","main":"./lib/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"../../node_modules/.bin/babel src --out-dir lib","clean":"rimraf lib","debug":"mocha debug --compilers js:babel-core/register --recursive","prepublish":"npm run build","test":"mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.9.0-rc.1","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"_id":"lore-hook-websockets-sails@0.9.0-rc.1","_shasum":"08cdb16e5310fc10b6ab90504b79448a1014bd7a","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.2","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"shasum":"08cdb16e5310fc10b6ab90504b79448a1014bd7a","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.9.0-rc.1.tgz","integrity":"sha512-OiBrz0flmNRGb63yQylGAVVLRlt91w2+Qezhu9qcy4130IhS0PfM9EK5uRurY94oGkGhCwjV3XU+hfUYqefHPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAk++pzwgVVoCsUVMu4Gl9USzx6cEnr9+PiMpztSIcfPAiEA9Amk4LZwXiLLDQcpYlC0sX66kM4B/KNMAvGiUR9rmE8="}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/lore-hook-websockets-sails-0.9.0-rc.1.tgz_1473454911821_0.4137987452559173"},"directories":{}},"0.9.0":{"name":"lore-hook-websockets-sails","version":"0.9.0","license":"MIT","main":"./lib/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"../../node_modules/.bin/babel src --out-dir lib","clean":"rimraf lib","debug":"mocha debug --compilers js:babel-core/register --recursive","prepublish":"npm run build","test":"mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.9.0","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"_id":"lore-hook-websockets-sails@0.9.0","_shasum":"f169724a20394be3c2965d086b000470d12dedc2","_from":".","_npmVersion":"3.9.5","_nodeVersion":"6.2.2","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"shasum":"f169724a20394be3c2965d086b000470d12dedc2","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.9.0.tgz","integrity":"sha512-f0/NkyXXXJGDSqOnJJIqQkQxR5oER8bYzOh+SgFicCtOwXVaT/BSIyOtMlKlnSg/3vzvO5pse0XTU6uGUhp/nw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDQRidYdlybRVWD5bjGRMpnDkneZKMFFksXyQivsyhsHAIgQUtQzO0F6fn2cx6K5ywdIuUPx/WCC/lC80hw8ZqojQQ="}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/lore-hook-websockets-sails-0.9.0.tgz_1473582764868_0.10762903280556202"},"directories":{}},"0.10.0-beta.1":{"name":"lore-hook-websockets-sails","version":"0.10.0-beta.1","license":"MIT","main":"./lib/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"../../node_modules/.bin/babel src --out-dir lib","clean":"rimraf lib","debug":"mocha debug --compilers js:babel-core/register --recursive","prepublish":"npm run build","test":"mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.10.0-beta.1","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"_id":"lore-hook-websockets-sails@0.10.0-beta.1","_shasum":"57b7c674835ed7a7b3c1c40edea777c2f5663cc3","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"shasum":"57b7c674835ed7a7b3c1c40edea777c2f5663cc3","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.10.0-beta.1.tgz","integrity":"sha512-ol4qduROQdlPpMFIojzwmbi0aP2X23cNKUw9UHial7kspSTWjzsgaQSkHq7B0JVicmyVn146QSVjPHjYs1VlgA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCme2uFvrFmvIS/U0oBwlC7ztJt87hLNh54TmLaUjGbqQIgdYW4kq2NQiwJ1sfokr4MpqZG5otlg23nmhqucZKEu64="}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/lore-hook-websockets-sails-0.10.0-beta.1.tgz_1475572929439_0.8237847965210676"},"directories":{}},"0.10.0":{"name":"lore-hook-websockets-sails","version":"0.10.0","license":"MIT","main":"./lib/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"../../node_modules/.bin/babel src --out-dir lib","clean":"rimraf lib","debug":"mocha debug --compilers js:babel-core/register --recursive","prepublish":"npm run build","test":"mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"~0.10.0","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"_id":"lore-hook-websockets-sails@0.10.0","_shasum":"3b8c10d6dda5a4d6c2366d9cbb9daa7fe4b4b688","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"shasum":"3b8c10d6dda5a4d6c2366d9cbb9daa7fe4b4b688","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.10.0.tgz","integrity":"sha512-qfPCICv0ADZi3Q5Y14vaJ514ePiN6eHRdFRHKqe24+lW2BaMlKNcEoxt7coGhX3BGQ0NbIdwkpUshHUpFHB/Ug==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGmacOdGmiMJTr2fHj7pJsoL2Iwald4g/8FioQbW/RBnAiAdD9LDmZEZ209dGIWWtobUmhVthkWNfK+n5gFeS2f0bw=="}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/lore-hook-websockets-sails-0.10.0.tgz_1476337332001_0.04352426389232278"},"directories":{}},"0.11.0-beta.1":{"name":"lore-hook-websockets-sails","version":"0.11.0-beta.1","license":"MIT","main":"./lib/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"../../node_modules/.bin/babel src --out-dir lib","clean":"rimraf lib","debug":"mocha debug --compilers js:babel-core/register --recursive","prepublish":"npm run build","test":"mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.11.0-beta.1","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"_id":"lore-hook-websockets-sails@0.11.0-beta.1","_shasum":"0f73d794920a94a25cc49fb2d893c22212c205fd","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"shasum":"0f73d794920a94a25cc49fb2d893c22212c205fd","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.11.0-beta.1.tgz","integrity":"sha512-ONAex4CGn5pYdzgKZoa6frP0j/fZjnSSaV5ueplgijj2Qvd6992nb/XtUoO4g6RfrWvDXJy6iJvNBb0Fh6mf8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmhbvlO9LAI/8qAkfEnkxmWQSFj8zoB51CZVp4T+tcYwIgCrxd95yHiOcPKqnFj0dEf5P++MhuzWK5f/Euc2vlZsw="}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/lore-hook-websockets-sails-0.11.0-beta.1.tgz_1481523872395_0.06337069976143539"},"directories":{}},"0.11.0-rc.1":{"name":"lore-hook-websockets-sails","version":"0.11.0-rc.1","license":"MIT","main":"./lib/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"../../node_modules/.bin/babel src --out-dir lib","clean":"rimraf lib","debug":"mocha debug --compilers js:babel-core/register --recursive","prepublish":"npm run build","test":"mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.11.0-rc.1","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"_id":"lore-hook-websockets-sails@0.11.0-rc.1","_shasum":"9e2225f0a26040024e5d5173b4f96a57ee7c5080","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"shasum":"9e2225f0a26040024e5d5173b4f96a57ee7c5080","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.11.0-rc.1.tgz","integrity":"sha512-aAwAG30WJrBAb8kNUcvQkOeV+QG1jKezMBF7hbyzzE7sXbIjzo7pSh4TrjbUL8kazzfR+bEiKI2aMmn5q0Yrgw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAzbSjcxO9qeGzyDb6ELyRLE0KepNjEC78YzW2ezWll4AiAI97fi4anAGJaOzt+UK85UlbPt1Kuq5KR84HMgAp5bOA=="}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/lore-hook-websockets-sails-0.11.0-rc.1.tgz_1485239117936_0.019996448885649443"},"directories":{}},"0.11.0":{"name":"lore-hook-websockets-sails","version":"0.11.0","license":"MIT","main":"./lib/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"../../node_modules/.bin/babel src --out-dir lib","clean":"rimraf lib","debug":"mocha debug --compilers js:babel-core/register --recursive","prepublish":"npm run build","test":"mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.11.0","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"_id":"lore-hook-websockets-sails@0.11.0","_shasum":"308755c679df51c5711ba5a37ee1a0544a655846","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.6.0","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"shasum":"308755c679df51c5711ba5a37ee1a0544a655846","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.11.0.tgz","integrity":"sha512-MgNFg+H8JDirJ3hPCGyiCKguYTzPBAuSZngf93eaf8v/VNRDbDlyIGNKVLrYAjf2z1d8vFni+QAvs/O+UZ/FoQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5gDhvZtG5/s2BjuCzhmZ3WPJ1XFi6HweJk4Z0qhA6LQIhAJKsB6tQulsf8dKCuCIKwq3kQmkMF18e5ZKGA1eb5Asf"}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/lore-hook-websockets-sails-0.11.0.tgz_1485665720072_0.7455637969542295"},"directories":{}},"0.12.0-beta.1":{"name":"lore-hook-websockets-sails","version":"0.12.0-beta.1","license":"MIT","main":"./lib/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"../../node_modules/.bin/babel src --out-dir lib","clean":"rimraf lib","debug":"mocha debug --compilers js:babel-core/register --recursive","prepublish":"npm run build","test":"mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.12.0-beta.1","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"_id":"lore-hook-websockets-sails@0.12.0-beta.1","_shasum":"7b798aacaa2ea6615f215baf9c4baf60eb1e09db","_from":".","_npmVersion":"4.4.0","_nodeVersion":"6.6.0","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"shasum":"7b798aacaa2ea6615f215baf9c4baf60eb1e09db","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.12.0-beta.1.tgz","integrity":"sha512-wyWcb7pNVfrfhd2xG5gQ5COAzkMpiR8RaLciQgK5XuB8WsjQrpMB1Zkk2OJNkOy4txrxpybyADooisZP35IlzA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCD+0ArH7EcoyVo722pOVsceqhaxBRictaqE37aUF5ItgIgCEify2XNdHYcKUW9i+0U+oWvQSMg/IXQbyjJa8doaKE="}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/lore-hook-websockets-sails-0.12.0-beta.1.tgz_1488758417172_0.9952851098496467"},"directories":{}},"0.11.5":{"name":"lore-hook-websockets-sails","version":"0.11.5","license":"MIT","main":"./lib/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"../../node_modules/.bin/babel src --out-dir lib","clean":"rimraf lib","debug":"mocha debug --compilers js:babel-core/register --recursive","prepublish":"npm run build","test":"mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"~0.11.0","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"_id":"lore-hook-websockets-sails@0.11.5","_shasum":"beb1c5434587a1f2ee94d6657c4c0aea3c935d41","_from":".","_npmVersion":"4.4.4","_nodeVersion":"6.6.0","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"shasum":"beb1c5434587a1f2ee94d6657c4c0aea3c935d41","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.11.5.tgz","integrity":"sha512-phZ6xB3ZGRr4RVVf3yBj/Cc87qrzmveZmejScgww9LRCnxH+jkxaUrKH+bpdjZK7h57ckb+cag9rqeJhQq5BUQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID8AFFek3UL65YXQWEUd5T7Da0mg0QMCwvlvygOQdVIgAiAipIeCIb8rtDP5LOUN72DAMlg8yon33QdyO8v209EN4g=="}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/lore-hook-websockets-sails-0.11.5.tgz_1493712298336_0.3154896094929427"},"directories":{}},"0.12.0-rc.1":{"name":"lore-hook-websockets-sails","version":"0.12.0-rc.1","license":"MIT","main":"./lib/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"../../node_modules/.bin/babel src --out-dir lib","clean":"rimraf lib","debug":"mocha debug --compilers js:babel-core/register --recursive","prepublish":"npm run build","test":"mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.12.0-rc.1","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"_id":"lore-hook-websockets-sails@0.12.0-rc.1","_shasum":"210302791554925d007b400f19ba1260276424a8","_from":".","_npmVersion":"4.4.4","_nodeVersion":"6.6.0","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"shasum":"210302791554925d007b400f19ba1260276424a8","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.12.0-rc.1.tgz","integrity":"sha512-qhhYkL8+jNCppLeqanhU6X1yWmMKRpj66hSrT4H+fMnhiS9ffyNoj1TBch33LY2DflawK4S6U1Od+3tStbC7FQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBAMoDpGTl9WZGraCR6M2pJxhkL/c7cGair6Jr8S5c1iAiBhN9aNPEp6tQrwbdieQO9GG9ay04tC/KaG8a1hsmgDBA=="}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/lore-hook-websockets-sails-0.12.0-rc.1.tgz_1493715359009_0.9519451537635177"},"directories":{}},"0.12.0":{"name":"lore-hook-websockets-sails","version":"0.12.0","license":"MIT","main":"./lib/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"../../node_modules/.bin/babel src --out-dir lib","clean":"rimraf lib","debug":"mocha debug --compilers js:babel-core/register --recursive","prepublish":"npm run build","test":"mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.12.0","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"_id":"lore-hook-websockets-sails@0.12.0","_shasum":"12348892b19429bfdd22e3ef6628e304b2b3c624","_from":".","_npmVersion":"4.4.4","_nodeVersion":"6.6.0","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"shasum":"12348892b19429bfdd22e3ef6628e304b2b3c624","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.12.0.tgz","integrity":"sha512-37u8w3xywkqoERZGkKtMtfbREQe74t+sRhlOuC/2wJU8j6pY5MHTJzUUcQGFaKLTLAJrCA+5FV1l35o2CSf9WA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCeouG5DekS6Hl4+2PoQNEEvqvHj1ZpxNtRV+vN8YIodQIgLnTMw7+TkIf6nINuxatXPWfe/vkk2s8b/JgqpP5YV9g="}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/lore-hook-websockets-sails-0.12.0.tgz_1494219625700_0.991880786139518"},"directories":{}},"0.12.6":{"name":"lore-hook-websockets-sails","version":"0.12.6","license":"MIT","main":"./lib/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"../../node_modules/.bin/babel src --out-dir lib","clean":"rimraf lib","debug":"mocha debug --compilers js:babel-core/register --recursive","prepublish":"npm run build","test":"mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.12.6","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"_id":"lore-hook-websockets-sails@0.12.6","_npmVersion":"5.0.4","_nodeVersion":"6.11.0","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"integrity":"sha512-5ICNbBp03EabuSLR2Tr8BOeGOiffwm32C3KqNvcKP+rP/U3xSVVG0+J3QydXp6s2CJRHAi+st8rYWZdWg8lwqg==","shasum":"d8d1220a1955167314cdf0451096c61c83f8a732","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.12.6.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8T8I+uWFHdzauNXzwYRNTCuncSKEYAQ6NRzeBohdJgwIhAJBriNgSlojEwQKuVEVGwU27lwA2wEvu2xOg5Fih+8zS"}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lore-hook-websockets-sails-0.12.6.tgz_1499144978235_0.1735530614387244"},"directories":{}},"0.12.7-rc.1":{"name":"lore-hook-websockets-sails","version":"0.12.7-rc.1","license":"MIT","main":"lib/index.js","module":"es/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"npm run build:cjs && npm run build:es","build:cjs":"BABEL_ENV=cjs ../../node_modules/.bin/babel src --out-dir lib","build:es":"BABEL_ENV=es ../../node_modules/.bin/babel src --out-dir es","clean":"rimraf lib && rimraf es","debug":"mocha debug --compilers js:babel-core/register --recursive","prepublish":"npm run build","test":"BABEL_ENV=test mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.12.7-rc.1","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"_id":"lore-hook-websockets-sails@0.12.7-rc.1","_npmVersion":"5.1.0","_nodeVersion":"6.11.0","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"integrity":"sha512-JPJGZSVK0FV9eiLZDWZKuE6k7C9osER20QrkXnfZduEchzHQmW83sFSAdrBZud1SeJF3uCL9PVhRqYUSj/uXvQ==","shasum":"5105f0bcf7b7b5bbf638f1bf6024e190312228f1","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.12.7-rc.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGwtikYpFvC5TcA7mS5zurEvGRZGuHESclbzmLW4VDazAiBNe7mEsN0ci07eTbD5MbY+y5vo+TNXbGHJrTo3jy0H9Q=="}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lore-hook-websockets-sails-0.12.7-rc.1.tgz_1499638578571_0.44759077928029"},"directories":{}},"0.13.0-beta.1":{"name":"lore-hook-websockets-sails","version":"0.13.0-beta.1","license":"MIT","main":"lib/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"npm run build:cjs && npm run build:es","build:cjs":"BABEL_ENV=cjs ../../node_modules/.bin/babel src --out-dir lib","build:es":"BABEL_ENV=es ../../node_modules/.bin/babel src --out-dir es","clean":"rimraf lib && rimraf es","debug":"mocha debug --compilers js:babel-core/register --recursive","lint":"../../node_modules/.bin/eslint src","prepublish":"npm run build","test":"BABEL_ENV=test mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.13.0-beta.1","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"_id":"lore-hook-websockets-sails@0.13.0-beta.1","_npmVersion":"5.4.2","_nodeVersion":"8.5.0","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"integrity":"sha512-rsSoSfQ/rR7NaqICO0Bn8KOSf0LDFf49Rc7Xc9BS1mq8GXrymZWfxllPncFEDk4nl0jZV01FKW2vbxlcY2lZ9w==","shasum":"f9480c047bb0419c84e19d25c9be24bcd03a7058","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.13.0-beta.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDD2IouROBnYgKewxyvnlXzuXKyyFckgF1kfcs15XgydwIhAMJ+LIj2zMXMaTT6etjTijgqMsGRlVHzmZVMI0Kqok1K"}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lore-hook-websockets-sails-0.13.0-beta.1.tgz_1505764653556_0.37590494309552014"},"directories":{}},"0.13.0-beta.3":{"name":"lore-hook-websockets-sails","version":"0.13.0-beta.3","license":"MIT","main":"lib/index.js","module":"es/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"npm run build:cjs && npm run build:es","build:cjs":"BABEL_ENV=cjs ../../node_modules/.bin/babel src --out-dir lib","build:es":"BABEL_ENV=es ../../node_modules/.bin/babel src --out-dir es","clean":"rimraf lib && rimraf es","debug":"mocha debug --compilers js:babel-core/register --recursive","lint":"../../node_modules/.bin/eslint src","prepublish":"npm run build","test":"BABEL_ENV=test mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.13.0-beta.3","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"_id":"lore-hook-websockets-sails@0.13.0-beta.3","_npmVersion":"5.4.2","_nodeVersion":"8.5.0","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"integrity":"sha512-zPVTyRENzbTnOc6+xoUIBuKNBkrZgbLupryqInFg0cZyFL+P+y8hqLtvkL/IIhqoZhWrQZTu5h+5LGk/DNtMSQ==","shasum":"1b97013fb80e92b002dbcb074e78a1cda9532618","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.13.0-beta.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBILj2GF7dpnrxAD04FlwYffXgBXsOhS6vlpyvaK7eKBAiBiTPVL/Z1/A+oNDStUvs5sLcLxtAOYWSXHJiQTzTYa/g=="}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lore-hook-websockets-sails-0.13.0-beta.3.tgz_1505773911635_0.7500824460294098"},"directories":{}},"0.13.0-beta.5":{"name":"lore-hook-websockets-sails","version":"0.13.0-beta.5","license":"MIT","main":"lib/index.js","module":"es/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"npm run build:cjs && npm run build:es","build:cjs":"BABEL_ENV=cjs ../../node_modules/.bin/babel src --out-dir lib","build:es":"BABEL_ENV=es ../../node_modules/.bin/babel src --out-dir es","clean":"rimraf lib && rimraf es","debug":"mocha debug --compilers js:babel-core/register --recursive","lint":"../../node_modules/.bin/eslint src","prepublish":"npm run build","test":"BABEL_ENV=test mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.13.0-beta.5","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"_id":"lore-hook-websockets-sails@0.13.0-beta.5","_npmVersion":"5.4.2","_nodeVersion":"8.6.0","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"integrity":"sha512-DqSgg9ybhQMzVJCc/DYUfD/k/GpipsKD8r/hrCw3SrryzNxtLZFUg+jirv9jEZUK8n4VBY0FncqFrgDXF6zhnw==","shasum":"63f5f41a0e6ad85d66334c2cc662b89284a6b093","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.13.0-beta.5.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8Ne25SY3Tx4S/BB9SPwyvxNFJaSnbaO9cXpOD7xvV4QIgV7B9CYtByJYVny+uqqJE7CbHVNGOSIrc8reuKdSKWjA="}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lore-hook-websockets-sails-0.13.0-beta.5.tgz_1510692780241_0.1649929559789598"},"directories":{}},"0.13.0-beta.6":{"name":"lore-hook-websockets-sails","version":"0.13.0-beta.6","license":"MIT","main":"lib/index.js","module":"es/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"npm run build:cjs && npm run build:es","build:cjs":"BABEL_ENV=cjs ../../node_modules/.bin/babel src --out-dir lib","build:es":"BABEL_ENV=es ../../node_modules/.bin/babel src --out-dir es","clean":"rimraf lib && rimraf es","debug":"mocha debug --compilers js:babel-core/register --recursive","lint":"../../node_modules/.bin/eslint src","prepublish":"npm run build","test":"BABEL_ENV=test mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.13.0-beta.6","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"_id":"lore-hook-websockets-sails@0.13.0-beta.6","_npmVersion":"5.4.2","_nodeVersion":"8.6.0","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"integrity":"sha512-tT7gRHKZWkVgONQClSqWcgwlBomLB3h5S5hugUo2ASgSbGDZCFAke0YuCtdtdz+wzIkiAQVHfHD5Zwtfj4Sj4A==","shasum":"5fe75250035721e3fecc9a34b73acb91c573a599","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.13.0-beta.6.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCe2qNvOzYoUQS10d8ajMGXyUq4PuiLpLagTr7R4UBuuwIgXIt2DYDgDOILIkeCCuNbUJ+Gio5SlI4ub43bWEz8hfw="}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lore-hook-websockets-sails-0.13.0-beta.6.tgz_1510698387381_0.6195640170481056"},"directories":{}},"0.13.0-beta.7":{"name":"lore-hook-websockets-sails","version":"0.13.0-beta.7","license":"MIT","main":"lib/index.js","module":"es/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"npm run build:cjs && npm run build:es","build:cjs":"BABEL_ENV=cjs ../../node_modules/.bin/babel src --out-dir lib","build:es":"BABEL_ENV=es ../../node_modules/.bin/babel src --out-dir es","clean":"rimraf lib && rimraf es","debug":"mocha debug --compilers js:babel-core/register --recursive","lint":"../../node_modules/.bin/eslint src","prepublish":"npm run build","test":"BABEL_ENV=test mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.13.0-beta.7","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"_id":"lore-hook-websockets-sails@0.13.0-beta.7","_npmVersion":"5.4.2","_nodeVersion":"8.6.0","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"integrity":"sha512-/0YRgYvXTITYhb26B58JeYlj2uK2ERA0vXLUm3zFRDtVh3OjNhcbdK1R5xbI4VhyJ7b9odWQO/tSpNbWLxFUqA==","shasum":"bd124b38fc494297f221bf8c089161e35a3e71d3","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.13.0-beta.7.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBAV7/Wmxx1gvf6sr3T5feTS5jHvSHUJC08rXSzSS+hVAiEA3LZvB7XIE4WFL4sLXRu7rAXY6tL4Bpv5UXkPxYH0agk="}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lore-hook-websockets-sails-0.13.0-beta.7.tgz_1510699136906_0.34957687882706523"},"directories":{}},"0.13.0-beta.9":{"name":"lore-hook-websockets-sails","version":"0.13.0-beta.9","license":"MIT","main":"lib/index.js","module":"es/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"npm run build:cjs && npm run build:es","build:cjs":"BABEL_ENV=cjs ../../node_modules/.bin/babel src --out-dir lib","build:es":"BABEL_ENV=es ../../node_modules/.bin/babel src --out-dir es","clean":"rimraf lib && rimraf es","debug":"mocha debug --compilers js:babel-core/register --recursive","lint":"../../node_modules/.bin/eslint src","prepublish":"npm run build","test":"BABEL_ENV=test mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.13.0-beta.9","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"_id":"lore-hook-websockets-sails@0.13.0-beta.9","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"integrity":"sha512-3B6iMpaDB3iIwAGN6pbu/UNP9Ha23MHWkQZzOpH5Oalu7lLv3X1YzheHaNiqtkeP9nyiYiMYaYuOMyK9clcOrg==","shasum":"53f5ad3613559a29a5be09046a19486557186b39","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.13.0-beta.9.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICK4m90WH9tEPIt6DDyTenSTt+XIIstcwe9+VIRI181uAiEAyYEFsSrV92XdCbif5zniLWouNwShUvUfQuMNrQDOG9g="}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lore-hook-websockets-sails-0.13.0-beta.9.tgz_1511594316756_0.9715852774679661"},"directories":{}},"0.13.0-beta.10":{"name":"lore-hook-websockets-sails","version":"0.13.0-beta.10","license":"MIT","main":"lib/index.js","module":"es/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"npm run build:cjs && npm run build:es","build:cjs":"BABEL_ENV=cjs ../../node_modules/.bin/babel src --out-dir lib","build:es":"BABEL_ENV=es ../../node_modules/.bin/babel src --out-dir es","clean":"rimraf lib && rimraf es","debug":"mocha debug --compilers js:babel-core/register --recursive","lint":"../../node_modules/.bin/eslint src","prepublish":"npm run build","test":"BABEL_ENV=test mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.13.0-beta.10","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"_id":"lore-hook-websockets-sails@0.13.0-beta.10","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"integrity":"sha512-7IHyDknY/5DOTmHmGbwRFi7vdfoqlWKXHqojfgZLB8e9p7efUC9Wigyr/iIQHveT5tndzUEMO85Yh/Zj859Y9A==","shasum":"ee2f00f1289ad8ba4de4350eb0d262ce9bdbe952","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.13.0-beta.10.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBe+KYCbNFQGyVRIrAVGmRTo/8GBUWoUBm87L3jGKauEAiBENRQAsGNM1tS8XhMVz2Z8Kpv0zdo36nqAk7qpsU7z/Q=="}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lore-hook-websockets-sails-0.13.0-beta.10.tgz_1513286429787_0.8686444510240108"},"directories":{}},"0.13.0-beta.11":{"name":"lore-hook-websockets-sails","version":"0.13.0-beta.11","license":"MIT","main":"lib/index.js","module":"es/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"npm run build:cjs && npm run build:es","build:cjs":"BABEL_ENV=cjs ../../node_modules/.bin/babel src --out-dir lib","build:es":"BABEL_ENV=es ../../node_modules/.bin/babel src --out-dir es","clean":"rimraf lib && rimraf es","debug":"mocha debug --compilers js:babel-core/register --recursive","lint":"../../node_modules/.bin/eslint src","prepublish":"npm run build","test":"BABEL_ENV=test mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.13.0-beta.11","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"_id":"lore-hook-websockets-sails@0.13.0-beta.11","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"integrity":"sha512-6Qv6XXAotAEpntQ8iV8Z1V6MYf5TfJumXClcvxPGyCiZxMNKXh+n9Mwfn6MrWFDNYtVAREIxx5mSog9dVdIyBw==","shasum":"7da779377e1f411b4914bb2a220eb6511286f084","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.13.0-beta.11.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClwQiRiuNYGllx97vuVdFvPmUEf+QOuGZWIC+i+XM7NQIgBfoqUjmHJDuVk1SpqFXEu3fbZMxze8RVF2XCSnCixJs="}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lore-hook-websockets-sails-0.13.0-beta.11.tgz_1513716351213_0.03587397816590965"},"directories":{}},"0.13.0-beta.12":{"name":"lore-hook-websockets-sails","version":"0.13.0-beta.12","license":"MIT","main":"lib/index.js","module":"es/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"npm run build:cjs && npm run build:es","build:cjs":"BABEL_ENV=cjs ../../node_modules/.bin/babel src --out-dir lib","build:es":"BABEL_ENV=es ../../node_modules/.bin/babel src --out-dir es","clean":"rimraf lib && rimraf es","debug":"mocha debug --compilers js:babel-core/register --recursive","lint":"../../node_modules/.bin/eslint src","prepublish":"npm run build","test":"BABEL_ENV=test mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.13.0-beta.12","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"readme":"# lore-hook-websockets-sails\n\nThe Sails hook behaves identical to the SocketIo hook, except for the implementation. The big callout here is that \nyou need to install both the `socket.io-client` _and_ the `sails.io.js` package (that takes the socket.io client as \nan argument). You also need to set the URL _immediately_ after creating this object, as it will try to call out to \nthe server. Alternatively, you can set `io.sails.url.authConnect = false`. I'm still playing with this implementation \na bit, but am leaning towards that solution (so that it doesn't make ANY server calls until you tell it to).\n\nThe other thing to point out is the `dispatch` implementation. For the most part Sails used a message structure \nconsisting of `verb` and `data` fields, but sometimes replaces `data` with `previous` when it comes to updated and \ndeleted data. So the parse method has been modified to convert everything into a verb/data structure.\n\n``` js\nvar _ = require('lodash');\nvar WebSocketConnection = require('lore-websockets').WebSocketConnection;\nvar io = require('socket.io-client');\nvar SailsIOClient = require('sails.io.js');\n\nvar SOCKET_VERBS = {\n  CREATED: 'created',\n  UPDATED: 'updated',\n  DESTROYED: 'destroyed',\n  ADDED_TO: 'addedTo'\n};\n\nmodule.exports = WebSocketConnection.extend({\n\n  // serverUrl: 'http://localhost:1337',\n  // namespace: '/posts',\n  // event: 'post',\n\n  initialize: function(dispatchers, actions) {\n    this.io = SailsIOClient(io);\n    this.io.sails.url = this.serverUrl;\n  },\n\n  connect: function() {\n    var namespace = this.namespace;\n    // we have to make a GET request to this endpoint before we're connected\n    this.io.socket.get(namespace, function() {\n      console.log(`Connected to ${namespace}`);\n    });\n  },\n\n  subscribe: function() {\n    this.io.socket.on(this.event, this.dispatch);\n  },\n\n  unsubscribe: function() {\n    this.io.socket.off(this.event, this.dispatch);\n  },\n\n  parse: function(message) {\n    if (message.verb === SOCKET_VERBS.CREATED) {\n      return {\n        verb: message.verb,\n        data: message.data\n      }\n    } else if (message.verb === SOCKET_VERBS.UPDATED) {\n      return {\n        verb: message.verb,\n        data: message.data\n      }\n    } else if (message.verb === SOCKET_VERBS.DESTROYED) {\n      return {\n        verb: message.verb,\n        data: message.previous\n      }\n    } else if (message.verb === SOCKET_VERBS.ADDED_TO) {\n      return {\n        verb: message.verb,\n        data: message.data\n      }\n    } else {\n      return {\n        verb: 'unknown_verb',\n        data: message\n      }\n    }\n  }\n\n});\n```\n","readmeFilename":"README.md","_id":"lore-hook-websockets-sails@0.13.0-beta.12","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"integrity":"sha512-CWQVxmFD4yaUumg8RdQTkro3xxhFVbNFTjLN2M5A7roXdA6uIvxNSyHhYK3NxOEQfwsd6AfKPhKGUYqAyRDrbA==","shasum":"3fba19b3d16c5e3113041e050add5e56fbc32b0d","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.13.0-beta.12.tgz","fileCount":9,"unpackedSize":16693,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDWoBabw3Zy4cTyGRgC22LCy2/AZTcPxr20I6ERWX5qzQIhANJxtqcUOgbWU4IPYoId+CT8cDcuYxu+vMmMv+elp6sU"}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lore-hook-websockets-sails_0.13.0-beta.12_1520214964949_0.5544097855533578"},"_hasShrinkwrap":false},"0.13.0-beta.13":{"name":"lore-hook-websockets-sails","version":"0.13.0-beta.13","license":"MIT","main":"lib/index.js","module":"es/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"npm run build:cjs && npm run build:es","build:cjs":"BABEL_ENV=cjs ../../node_modules/.bin/babel src --out-dir lib","build:es":"BABEL_ENV=es ../../node_modules/.bin/babel src --out-dir es","clean":"rimraf lib && rimraf es","debug":"mocha debug --compilers js:babel-core/register --recursive","lint":"../../node_modules/.bin/eslint src","prepublish":"npm run build","test":"BABEL_ENV=test mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.13.0-beta.13","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"readme":"# lore-hook-websockets-sails\n\nThe Sails hook behaves identical to the SocketIo hook, except for the implementation. The big callout here is that \nyou need to install both the `socket.io-client` _and_ the `sails.io.js` package (that takes the socket.io client as \nan argument). You also need to set the URL _immediately_ after creating this object, as it will try to call out to \nthe server. Alternatively, you can set `io.sails.url.authConnect = false`. I'm still playing with this implementation \na bit, but am leaning towards that solution (so that it doesn't make ANY server calls until you tell it to).\n\nThe other thing to point out is the `dispatch` implementation. For the most part Sails used a message structure \nconsisting of `verb` and `data` fields, but sometimes replaces `data` with `previous` when it comes to updated and \ndeleted data. So the parse method has been modified to convert everything into a verb/data structure.\n\n``` js\nvar _ = require('lodash');\nvar WebSocketConnection = require('lore-websockets').WebSocketConnection;\nvar io = require('socket.io-client');\nvar SailsIOClient = require('sails.io.js');\n\nvar SOCKET_VERBS = {\n  CREATED: 'created',\n  UPDATED: 'updated',\n  DESTROYED: 'destroyed',\n  ADDED_TO: 'addedTo'\n};\n\nmodule.exports = WebSocketConnection.extend({\n\n  // serverUrl: 'http://localhost:1337',\n  // namespace: '/posts',\n  // event: 'post',\n\n  initialize: function(dispatchers, actions) {\n    this.io = SailsIOClient(io);\n    this.io.sails.url = this.serverUrl;\n  },\n\n  connect: function() {\n    var namespace = this.namespace;\n    // we have to make a GET request to this endpoint before we're connected\n    this.io.socket.get(namespace, function() {\n      console.log(`Connected to ${namespace}`);\n    });\n  },\n\n  subscribe: function() {\n    this.io.socket.on(this.event, this.dispatch);\n  },\n\n  unsubscribe: function() {\n    this.io.socket.off(this.event, this.dispatch);\n  },\n\n  parse: function(message) {\n    if (message.verb === SOCKET_VERBS.CREATED) {\n      return {\n        verb: message.verb,\n        data: message.data\n      }\n    } else if (message.verb === SOCKET_VERBS.UPDATED) {\n      return {\n        verb: message.verb,\n        data: message.data\n      }\n    } else if (message.verb === SOCKET_VERBS.DESTROYED) {\n      return {\n        verb: message.verb,\n        data: message.previous\n      }\n    } else if (message.verb === SOCKET_VERBS.ADDED_TO) {\n      return {\n        verb: message.verb,\n        data: message.data\n      }\n    } else {\n      return {\n        verb: 'unknown_verb',\n        data: message\n      }\n    }\n  }\n\n});\n```\n","readmeFilename":"README.md","_id":"lore-hook-websockets-sails@0.13.0-beta.13","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"integrity":"sha512-7oJ5tSNE71foEPCFTVIQV/xY537TfSQejQ9aubTvG/JVZE9e1n6yd59O65rVF7DQzhg6iIgF+nWLcKLm40kTiw==","shasum":"97e9d03b0f90db0f5455d1e8074a13faaa321506","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.13.0-beta.13.tgz","fileCount":9,"unpackedSize":16693,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB3dAUnL0Dc8dLD/vIW5Np0GSsjS0ppAsGCwze8W42HHAiArr4skdUAPLXviK0kWReUeImqdm1wPCq2MGfP8JnbJVw=="}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lore-hook-websockets-sails_0.13.0-beta.13_1521940008583_0.44473536283435"},"_hasShrinkwrap":false},"0.13.0-beta.14":{"name":"lore-hook-websockets-sails","version":"0.13.0-beta.14","license":"MIT","main":"lib/index.js","module":"es/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"npm run build:cjs && npm run build:es","build:cjs":"BABEL_ENV=cjs ../../node_modules/.bin/babel src --out-dir lib","build:es":"BABEL_ENV=es ../../node_modules/.bin/babel src --out-dir es","clean":"rimraf lib && rimraf es","debug":"mocha debug --compilers js:babel-core/register --recursive","lint":"../../node_modules/.bin/eslint src","prepublish":"npm run build","test":"BABEL_ENV=test mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.13.0-beta.14","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"readme":"# lore-hook-websockets-sails\n\nThe Sails hook behaves identical to the SocketIo hook, except for the implementation. The big callout here is that \nyou need to install both the `socket.io-client` _and_ the `sails.io.js` package (that takes the socket.io client as \nan argument). You also need to set the URL _immediately_ after creating this object, as it will try to call out to \nthe server. Alternatively, you can set `io.sails.url.authConnect = false`. I'm still playing with this implementation \na bit, but am leaning towards that solution (so that it doesn't make ANY server calls until you tell it to).\n\nThe other thing to point out is the `dispatch` implementation. For the most part Sails used a message structure \nconsisting of `verb` and `data` fields, but sometimes replaces `data` with `previous` when it comes to updated and \ndeleted data. So the parse method has been modified to convert everything into a verb/data structure.\n\n``` js\nvar _ = require('lodash');\nvar WebSocketConnection = require('lore-websockets').WebSocketConnection;\nvar io = require('socket.io-client');\nvar SailsIOClient = require('sails.io.js');\n\nvar SOCKET_VERBS = {\n  CREATED: 'created',\n  UPDATED: 'updated',\n  DESTROYED: 'destroyed',\n  ADDED_TO: 'addedTo'\n};\n\nmodule.exports = WebSocketConnection.extend({\n\n  // serverUrl: 'http://localhost:1337',\n  // namespace: '/posts',\n  // event: 'post',\n\n  initialize: function(dispatchers, actions) {\n    this.io = SailsIOClient(io);\n    this.io.sails.url = this.serverUrl;\n  },\n\n  connect: function() {\n    var namespace = this.namespace;\n    // we have to make a GET request to this endpoint before we're connected\n    this.io.socket.get(namespace, function() {\n      console.log(`Connected to ${namespace}`);\n    });\n  },\n\n  subscribe: function() {\n    this.io.socket.on(this.event, this.dispatch);\n  },\n\n  unsubscribe: function() {\n    this.io.socket.off(this.event, this.dispatch);\n  },\n\n  parse: function(message) {\n    if (message.verb === SOCKET_VERBS.CREATED) {\n      return {\n        verb: message.verb,\n        data: message.data\n      }\n    } else if (message.verb === SOCKET_VERBS.UPDATED) {\n      return {\n        verb: message.verb,\n        data: message.data\n      }\n    } else if (message.verb === SOCKET_VERBS.DESTROYED) {\n      return {\n        verb: message.verb,\n        data: message.previous\n      }\n    } else if (message.verb === SOCKET_VERBS.ADDED_TO) {\n      return {\n        verb: message.verb,\n        data: message.data\n      }\n    } else {\n      return {\n        verb: 'unknown_verb',\n        data: message\n      }\n    }\n  }\n\n});\n```\n","readmeFilename":"README.md","_id":"lore-hook-websockets-sails@0.13.0-beta.14","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"integrity":"sha512-StrtNQu0mquNfjmtS6WTy8Vz/noMGKuTC1HZ6IxVcJu1X7NAMXKgvDHTx6uYAa9yjPeuBC+LZBcFkmtYfaSmiQ==","shasum":"00a5fb351ef1b0e5e3d9e93214d8e67a5d55a037","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.13.0-beta.14.tgz","fileCount":9,"unpackedSize":16693,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCstZ+M9wPVjZDopeAJomvKWbq6Fiqhujrlz+eTfUCtgIgK+Bnmp7F8fILAtZGdGnH7lKI598ZzJxJURYwO6dxhLA="}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lore-hook-websockets-sails_0.13.0-beta.14_1522531116183_0.9416231083642388"},"_hasShrinkwrap":false},"0.13.0-beta.15":{"name":"lore-hook-websockets-sails","version":"0.13.0-beta.15","license":"MIT","main":"lib/index.js","module":"es/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"npm run build:cjs && npm run build:es","build:cjs":"BABEL_ENV=cjs ../../node_modules/.bin/babel src --out-dir lib","build:es":"BABEL_ENV=es ../../node_modules/.bin/babel src --out-dir es","clean":"rimraf lib && rimraf es","debug":"mocha debug --compilers js:babel-core/register --recursive","lint":"../../node_modules/.bin/eslint src","prepublish":"npm run build","test":"BABEL_ENV=test mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.13.0-beta.15","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"readme":"# lore-hook-websockets-sails\n\nThe Sails hook behaves identical to the SocketIo hook, except for the implementation. The big callout here is that \nyou need to install both the `socket.io-client` _and_ the `sails.io.js` package (that takes the socket.io client as \nan argument). You also need to set the URL _immediately_ after creating this object, as it will try to call out to \nthe server. Alternatively, you can set `io.sails.url.authConnect = false`. I'm still playing with this implementation \na bit, but am leaning towards that solution (so that it doesn't make ANY server calls until you tell it to).\n\nThe other thing to point out is the `dispatch` implementation. For the most part Sails used a message structure \nconsisting of `verb` and `data` fields, but sometimes replaces `data` with `previous` when it comes to updated and \ndeleted data. So the parse method has been modified to convert everything into a verb/data structure.\n\n``` js\nvar _ = require('lodash');\nvar WebSocketConnection = require('lore-websockets').WebSocketConnection;\nvar io = require('socket.io-client');\nvar SailsIOClient = require('sails.io.js');\n\nvar SOCKET_VERBS = {\n  CREATED: 'created',\n  UPDATED: 'updated',\n  DESTROYED: 'destroyed',\n  ADDED_TO: 'addedTo'\n};\n\nmodule.exports = WebSocketConnection.extend({\n\n  // serverUrl: 'http://localhost:1337',\n  // namespace: '/posts',\n  // event: 'post',\n\n  initialize: function(dispatchers, actions) {\n    this.io = SailsIOClient(io);\n    this.io.sails.url = this.serverUrl;\n  },\n\n  connect: function() {\n    var namespace = this.namespace;\n    // we have to make a GET request to this endpoint before we're connected\n    this.io.socket.get(namespace, function() {\n      console.log(`Connected to ${namespace}`);\n    });\n  },\n\n  subscribe: function() {\n    this.io.socket.on(this.event, this.dispatch);\n  },\n\n  unsubscribe: function() {\n    this.io.socket.off(this.event, this.dispatch);\n  },\n\n  parse: function(message) {\n    if (message.verb === SOCKET_VERBS.CREATED) {\n      return {\n        verb: message.verb,\n        data: message.data\n      }\n    } else if (message.verb === SOCKET_VERBS.UPDATED) {\n      return {\n        verb: message.verb,\n        data: message.data\n      }\n    } else if (message.verb === SOCKET_VERBS.DESTROYED) {\n      return {\n        verb: message.verb,\n        data: message.previous\n      }\n    } else if (message.verb === SOCKET_VERBS.ADDED_TO) {\n      return {\n        verb: message.verb,\n        data: message.data\n      }\n    } else {\n      return {\n        verb: 'unknown_verb',\n        data: message\n      }\n    }\n  }\n\n});\n```\n","readmeFilename":"README.md","_id":"lore-hook-websockets-sails@0.13.0-beta.15","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"integrity":"sha512-atk3CU9RqVQcj6rS+xwujQZXNKa9R8y31jcOVUBeAI8WA5pESuD9asT+Z1jhaofVO6X6IJcJ5gnGoPrCOQJ80g==","shasum":"74e6c4ab9ad4c6ba873742aac351fac87ea4dbe8","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.13.0-beta.15.tgz","fileCount":9,"unpackedSize":16693,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLqo30e87E+01M9fJPMctHFth9ol7Q1ovqgiJTWGXBZgIgY6kccsLTi/VHoT2i3GK9mLpKkcluTMK7xwflqTO6dSE="}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lore-hook-websockets-sails_0.13.0-beta.15_1523329175287_0.34248323313863627"},"_hasShrinkwrap":false},"0.13.0-beta.16":{"name":"lore-hook-websockets-sails","version":"0.13.0-beta.16","license":"MIT","main":"lib/index.js","module":"es/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"npm run build:cjs && npm run build:es","build:cjs":"BABEL_ENV=cjs ../../node_modules/.bin/babel src --out-dir lib","build:es":"BABEL_ENV=es ../../node_modules/.bin/babel src --out-dir es","clean":"rimraf lib && rimraf es","debug":"mocha debug --compilers js:babel-core/register --recursive","lint":"../../node_modules/.bin/eslint src","prepublish":"npm run build","test":"BABEL_ENV=test mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.13.0-beta.16","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"readme":"# lore-hook-websockets-sails\n\nThe Sails hook behaves identical to the SocketIo hook, except for the implementation. The big callout here is that \nyou need to install both the `socket.io-client` _and_ the `sails.io.js` package (that takes the socket.io client as \nan argument). You also need to set the URL _immediately_ after creating this object, as it will try to call out to \nthe server. Alternatively, you can set `io.sails.url.authConnect = false`. I'm still playing with this implementation \na bit, but am leaning towards that solution (so that it doesn't make ANY server calls until you tell it to).\n\nThe other thing to point out is the `dispatch` implementation. For the most part Sails used a message structure \nconsisting of `verb` and `data` fields, but sometimes replaces `data` with `previous` when it comes to updated and \ndeleted data. So the parse method has been modified to convert everything into a verb/data structure.\n\n``` js\nvar _ = require('lodash');\nvar WebSocketConnection = require('lore-websockets').WebSocketConnection;\nvar io = require('socket.io-client');\nvar SailsIOClient = require('sails.io.js');\n\nvar SOCKET_VERBS = {\n  CREATED: 'created',\n  UPDATED: 'updated',\n  DESTROYED: 'destroyed',\n  ADDED_TO: 'addedTo'\n};\n\nmodule.exports = WebSocketConnection.extend({\n\n  // serverUrl: 'http://localhost:1337',\n  // namespace: '/posts',\n  // event: 'post',\n\n  initialize: function(dispatchers, actions) {\n    this.io = SailsIOClient(io);\n    this.io.sails.url = this.serverUrl;\n  },\n\n  connect: function() {\n    var namespace = this.namespace;\n    // we have to make a GET request to this endpoint before we're connected\n    this.io.socket.get(namespace, function() {\n      console.log(`Connected to ${namespace}`);\n    });\n  },\n\n  subscribe: function() {\n    this.io.socket.on(this.event, this.dispatch);\n  },\n\n  unsubscribe: function() {\n    this.io.socket.off(this.event, this.dispatch);\n  },\n\n  parse: function(message) {\n    if (message.verb === SOCKET_VERBS.CREATED) {\n      return {\n        verb: message.verb,\n        data: message.data\n      }\n    } else if (message.verb === SOCKET_VERBS.UPDATED) {\n      return {\n        verb: message.verb,\n        data: message.data\n      }\n    } else if (message.verb === SOCKET_VERBS.DESTROYED) {\n      return {\n        verb: message.verb,\n        data: message.previous\n      }\n    } else if (message.verb === SOCKET_VERBS.ADDED_TO) {\n      return {\n        verb: message.verb,\n        data: message.data\n      }\n    } else {\n      return {\n        verb: 'unknown_verb',\n        data: message\n      }\n    }\n  }\n\n});\n```\n","readmeFilename":"README.md","_id":"lore-hook-websockets-sails@0.13.0-beta.16","_npmVersion":"5.5.1","_nodeVersion":"8.9.1","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"integrity":"sha512-HRQPkeBeMWk3rGh2/NiSd/4CquXu6VOn95JEHiCRaa3B2DHR1ye6XLz+wY+O2jA8/YEU/tA7aZBbimrH7yqgQw==","shasum":"7c4506472c1f686a8edacd3a0a34a5de6dd35bb9","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.13.0-beta.16.tgz","fileCount":9,"unpackedSize":16693,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa4kK3CRA9TVsSAnZWagAAxLQP/jBNgxVWyUG5f6Y6tGKi\nLC2gTzvfaeTd4O8X1Gt5ZNDCOVCFa58QgUHCUxhEsZl78hpOYjwuZTu0WBJ1\nVOqTrraSwJCwMNjhsvz1bdcR5YFqJjuNiDE2u0BYtE6jqGFNVgmpWxKm6t2c\nuZxh1lQ13RI4K51RxXDDVim7rn/P6M4C7Q8TPOBgxKpA/pGW+ckSDw/iv8AS\nNtsh1BIGgj3rmR+RRV43x/LoY7tIe5f6Ig0wJ/MxEMEYSzTCrDRJ0EMZgNpW\nQgUa0u1MPptw4sy38Q0QLakaXiaDMC/bcIBi2nMaYFO6C/gVYdBEA3kUnzq2\nCCr5J/kibQW3X6w4Qh+3rGq8tXyykOm6CU+C4uHLnzvmFjKZz7ycvseTR+nt\nvFOR+MklyrHnGONDdJBCL/p9SSl05xOfH8ucV2F0BiGKhS2X7rDSzz1MiK21\n8ljV/DSQfFPO6BH3RW7RWS4KG7yg0ZRNP5KghwcmVtshz4LvFKkSXJEhW3JG\nEXEUA3ftvcBYHRURxtvjYJ88eEyg7rg+yCraTDxuQaxgQtbPCAWuh9Q/Gwk0\nMVGqx+wI3HqyoSVQ0HOCZl/HaQMYc4QUZ+0yZYBo+Be1j6bH6AIjUkZOgZ4x\ngWiLhy/x0oOGSAU3fcBoHn1qi79/5w3l9Ksxrf6gec1abLMKiioM/L8LbHX+\njTQl\r\n=M/Wd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBx0eV4Iq2hTZIfjPdS16HHANVjV9knjj74V3LUiNtwlAiABv97xUstLrUy9VB2B2nnJ5Ad3V4FmfHEfeXvqU+QwoQ=="}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lore-hook-websockets-sails_0.13.0-beta.16_1524777655027_0.27177479475215627"},"_hasShrinkwrap":false},"0.13.0-rc.1":{"name":"lore-hook-websockets-sails","version":"0.13.0-rc.1","license":"MIT","main":"lib/index.js","module":"es/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"npm run build:cjs && npm run build:es","build:cjs":"BABEL_ENV=cjs ../../node_modules/.bin/babel src --out-dir lib","build:es":"BABEL_ENV=es ../../node_modules/.bin/babel src --out-dir es","clean":"rimraf lib && rimraf es","debug":"mocha debug --compilers js:babel-core/register --recursive","lint":"../../node_modules/.bin/eslint src","prepublish":"npm run build","test":"BABEL_ENV=test mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.13.0-rc.1","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"readme":"# lore-hook-websockets-sails\n\nThe Sails hook behaves identical to the SocketIo hook, except for the implementation. The big callout here is that \nyou need to install both the `socket.io-client` _and_ the `sails.io.js` package (that takes the socket.io client as \nan argument). You also need to set the URL _immediately_ after creating this object, as it will try to call out to \nthe server. Alternatively, you can set `io.sails.url.authConnect = false`. I'm still playing with this implementation \na bit, but am leaning towards that solution (so that it doesn't make ANY server calls until you tell it to).\n\nThe other thing to point out is the `dispatch` implementation. For the most part Sails used a message structure \nconsisting of `verb` and `data` fields, but sometimes replaces `data` with `previous` when it comes to updated and \ndeleted data. So the parse method has been modified to convert everything into a verb/data structure.\n\n``` js\nvar _ = require('lodash');\nvar WebSocketConnection = require('lore-websockets').WebSocketConnection;\nvar io = require('socket.io-client');\nvar SailsIOClient = require('sails.io.js');\n\nvar SOCKET_VERBS = {\n  CREATED: 'created',\n  UPDATED: 'updated',\n  DESTROYED: 'destroyed',\n  ADDED_TO: 'addedTo'\n};\n\nmodule.exports = WebSocketConnection.extend({\n\n  // serverUrl: 'http://localhost:1337',\n  // namespace: '/posts',\n  // event: 'post',\n\n  initialize: function(dispatchers, actions) {\n    this.io = SailsIOClient(io);\n    this.io.sails.url = this.serverUrl;\n  },\n\n  connect: function() {\n    var namespace = this.namespace;\n    // we have to make a GET request to this endpoint before we're connected\n    this.io.socket.get(namespace, function() {\n      console.log(`Connected to ${namespace}`);\n    });\n  },\n\n  subscribe: function() {\n    this.io.socket.on(this.event, this.dispatch);\n  },\n\n  unsubscribe: function() {\n    this.io.socket.off(this.event, this.dispatch);\n  },\n\n  parse: function(message) {\n    if (message.verb === SOCKET_VERBS.CREATED) {\n      return {\n        verb: message.verb,\n        data: message.data\n      }\n    } else if (message.verb === SOCKET_VERBS.UPDATED) {\n      return {\n        verb: message.verb,\n        data: message.data\n      }\n    } else if (message.verb === SOCKET_VERBS.DESTROYED) {\n      return {\n        verb: message.verb,\n        data: message.previous\n      }\n    } else if (message.verb === SOCKET_VERBS.ADDED_TO) {\n      return {\n        verb: message.verb,\n        data: message.data\n      }\n    } else {\n      return {\n        verb: 'unknown_verb',\n        data: message\n      }\n    }\n  }\n\n});\n```\n","readmeFilename":"README.md","_id":"lore-hook-websockets-sails@0.13.0-rc.1","_npmVersion":"6.0.1","_nodeVersion":"8.11.1","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"integrity":"sha512-4uSN2gdKomtDuff8Bu9q0Rn6rbEjJJqIHsBmnhXoYNRglKKfB6FyZjVQz6/hl4DI2yhuvncNM49jA5KIyybIpw==","shasum":"154ed8e361ecf529ec7cb154e1e59d701f336f3a","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.13.0-rc.1.tgz","fileCount":9,"unpackedSize":16687,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa+Ic4CRA9TVsSAnZWagAAitgP/ihVb07+HGLUMKWr3WEa\n2tlhND+ktGmAP8QGn9AulguhP6213Nmwc5uiq97OLYlXUJmbC6iPbvGEQEOo\nsyhaHmTXHu5y2Z3DiNhFB/rivpegaCXYAZuWJGhu4A3eDiBlIt+1A1EL/BM+\nuBIDi0kH5KiTiTnv1WT/d12mZRnhs23PQo1H3KO54uRDLjyfSOoAbH3WhTro\nW8OaTNSsg8AO2C66Y2Aj7OY3C12V5bsGqqn1C7p7cLyLprVhvmEiBzAUvXH6\na1/ARlMx6pA7rhavaJnLQIa1ZqPi+JCoaQ4I/I4Yq0XVlHhJh5jjhuS8Kyfo\nSHbKNJDdBA8qpJ9YOj84FiwU3/0Fx8hn6mp0EwjqRs85AZO6Gwg0Y0bPsv2e\nq1bqaR6w0QTnhcR6ns5RlLogWC3Vf2fRsXDveY6A7bSrpk4QDyutpn72ruaO\n0+qHTc1lkV8dbGrRW+Qk69QfZ+bLfyPN5/ne51Q+QqmjIpGKB68P5J1bmkmb\nbRW2aKPGfPCjnItvBc66P5fvyr8enRInyTA97lp/1dMZ1f4OgOnfv4i4qNw2\nOuEClca9FAeSt94sVCUMH8jDzhrAhP1A27GkCLAsU6AtJALcgMy0IKFaMdGg\n6LdFv/5kZ8T88Ln4nzuuu/Xk0rGDGF0TsELPIs9osyLCvy5PRvWAYclKY9/q\nOJhn\r\n=howy\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGEHpanUwYnNpfcPcZS3lM8Tx5Xf2/AQ+ECermO01PPhAiAEC2TxzZnbQGN2mHjbyFl0hUNV182lI0Io9x6K/tyLpg=="}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lore-hook-websockets-sails_0.13.0-rc.1_1526236984500_0.6373089582458404"},"_hasShrinkwrap":false},"0.13.0-rc.2":{"name":"lore-hook-websockets-sails","version":"0.13.0-rc.2","license":"MIT","main":"lib/index.js","module":"es/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"npm run build:cjs && npm run build:es","build:cjs":"BABEL_ENV=cjs ../../node_modules/.bin/babel src --out-dir lib","build:es":"BABEL_ENV=es ../../node_modules/.bin/babel src --out-dir es","clean":"rimraf lib && rimraf es","debug":"mocha debug --compilers js:babel-core/register --recursive","lint":"../../node_modules/.bin/eslint src","prepublish":"npm run build","test":"BABEL_ENV=test mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.13.0-rc.2","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"readme":"# lore-hook-websockets-sails\n\nThe Sails hook behaves identical to the SocketIo hook, except for the implementation. The big callout here is that \nyou need to install both the `socket.io-client` _and_ the `sails.io.js` package (that takes the socket.io client as \nan argument). You also need to set the URL _immediately_ after creating this object, as it will try to call out to \nthe server. Alternatively, you can set `io.sails.url.authConnect = false`. I'm still playing with this implementation \na bit, but am leaning towards that solution (so that it doesn't make ANY server calls until you tell it to).\n\nThe other thing to point out is the `dispatch` implementation. For the most part Sails used a message structure \nconsisting of `verb` and `data` fields, but sometimes replaces `data` with `previous` when it comes to updated and \ndeleted data. So the parse method has been modified to convert everything into a verb/data structure.\n\n``` js\nvar _ = require('lodash');\nvar WebSocketConnection = require('lore-websockets').WebSocketConnection;\nvar io = require('socket.io-client');\nvar SailsIOClient = require('sails.io.js');\n\nvar SOCKET_VERBS = {\n  CREATED: 'created',\n  UPDATED: 'updated',\n  DESTROYED: 'destroyed',\n  ADDED_TO: 'addedTo'\n};\n\nmodule.exports = WebSocketConnection.extend({\n\n  // serverUrl: 'http://localhost:1337',\n  // namespace: '/posts',\n  // event: 'post',\n\n  initialize: function(dispatchers, actions) {\n    this.io = SailsIOClient(io);\n    this.io.sails.url = this.serverUrl;\n  },\n\n  connect: function() {\n    var namespace = this.namespace;\n    // we have to make a GET request to this endpoint before we're connected\n    this.io.socket.get(namespace, function() {\n      console.log(`Connected to ${namespace}`);\n    });\n  },\n\n  subscribe: function() {\n    this.io.socket.on(this.event, this.dispatch);\n  },\n\n  unsubscribe: function() {\n    this.io.socket.off(this.event, this.dispatch);\n  },\n\n  parse: function(message) {\n    if (message.verb === SOCKET_VERBS.CREATED) {\n      return {\n        verb: message.verb,\n        data: message.data\n      }\n    } else if (message.verb === SOCKET_VERBS.UPDATED) {\n      return {\n        verb: message.verb,\n        data: message.data\n      }\n    } else if (message.verb === SOCKET_VERBS.DESTROYED) {\n      return {\n        verb: message.verb,\n        data: message.previous\n      }\n    } else if (message.verb === SOCKET_VERBS.ADDED_TO) {\n      return {\n        verb: message.verb,\n        data: message.data\n      }\n    } else {\n      return {\n        verb: 'unknown_verb',\n        data: message\n      }\n    }\n  }\n\n});\n```\n","readmeFilename":"README.md","_id":"lore-hook-websockets-sails@0.13.0-rc.2","_npmVersion":"6.0.1","_nodeVersion":"8.11.1","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"integrity":"sha512-qtYZ5q9VCEbKLovWUvl2qmXeS8wiudEHSdNK5Tp/ZBoWecLpKCVNHX4cojphzkfEFoTxRXTDtYC5iow31jXBhw==","shasum":"132caa07c2a85597bdb8d42b53f89a65200572ec","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.13.0-rc.2.tgz","fileCount":9,"unpackedSize":16687,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbAhMmCRA9TVsSAnZWagAAKFkP/2hDeI37zOXttrdyndLF\n2iKn9xQB3MkZV9MKLgA/bJDDRiaSIlJhnjCdO4HqWvHaOnhWRql5NBnWwyAv\n1UoKh6sb4O1FK5AfloA91QMQnXifnSRkib1dLKPHIq9E+IZSYGB+xGlGI5KS\n3QzGK/L9JQAGpLImefRAf6VUAZ16mNwZW2np8+X4Zp00rmmZnieSOwgk93wp\nnZmf8bWRYV4h+Kkn3HozjgA7szDxw9bMDS8jBbqEGwKRHVke4wC8mujlH95m\nJ22LxD5/6ism3P5jkW0kVvEHdgVu8JCyxV/h4Q8kNQ1u7SGIKLzz4XkPvvei\n+WfZNfSZPoI5DlmnyZ4tmqDYEAdMft4TYbaVZu0cZu3vIeL2Hlzu+zIJwFTT\nQ9ED57aZaDFIRb/wnQWEl21fGcss8NVrBX9zATP6MrTrIx5QrBxv1NpDDN+4\n1Sm+RubFLJOqbstJBfcOP2FyqvBkwY8ut2Df3r4Uh4shZVPlQafOB6Fa5J7/\ngDODWj2WwkSvtIbJ2plZZq/+Z8iKJnbmD3uYAFfzpQYSzCdAfAK63xz4Ac+B\nw0J8wMXfc3t8J35MlP+PZYNoeeBWZGAlSfKano+AAyaiPCM3RDmSjmoHoRWM\nIPTCB9Mi/G5KZLamrGMJq2yptdLqily5M8b5+AsbGDX1JOkiXxhk8N6Mnq7Q\ncPb/\r\n=e13b\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIDE4tbFmTTMit/rCQIBzTx1gKO5SYHhNaK7kjT7raygIhAJnzDsVxgSM6xw5uqQf2ixOp1Di+SD7X5LFI96MDpPN4"}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lore-hook-websockets-sails_0.13.0-rc.2_1526862630558_0.666676985892648"},"_hasShrinkwrap":false},"0.13.0":{"name":"lore-hook-websockets-sails","version":"0.13.0","license":"MIT","main":"lib/index.js","module":"es/index.js","description":"A lore hook that add websockets support for Sails","keywords":["lore","hook","websockets","sails"],"scripts":{"build":"npm run build:cjs && npm run build:es","build:cjs":"BABEL_ENV=cjs ../../node_modules/.bin/babel src --out-dir lib","build:es":"BABEL_ENV=es ../../node_modules/.bin/babel src --out-dir es","clean":"rimraf lib && rimraf es","debug":"mocha debug --compilers js:babel-core/register --recursive","lint":"../../node_modules/.bin/eslint src","prepublish":"npm run build","test":"BABEL_ENV=test mocha --compilers js:babel-core/register --recursive"},"dependencies":{"lodash":"^4.0.0","lore-websockets":"^0.13.0","pluralize":"1.2.1"},"devDependencies":{"chai":"3.4.1","mocha":"2.3.4","rimraf":"2.5.2","sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"peerDependencies":{"sails.io.js":"^0.13.8","socket.io-client":"^1.4.8"},"_id":"lore-hook-websockets-sails@0.13.0","_npmVersion":"6.0.1","_nodeVersion":"8.11.1","_npmUser":{"name":"jchansen","email":"jason_hansen@outlook.com"},"dist":{"integrity":"sha512-7fbkNsdgPuGcEivQwN6AApOE3YfPUMnf0KaNYzGfMmkNoZTliCKmVeSRsie8IDD2UUqR/nbyJzfRDzxSsy/XkA==","shasum":"d6de93c5f1cf8656dd1aaaf00eaf27cca4118154","tarball":"https://registry.npmjs.org/lore-hook-websockets-sails/-/lore-hook-websockets-sails-0.13.0.tgz","fileCount":9,"unpackedSize":16677,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbLvkfCRA9TVsSAnZWagAASNkP/1eMLQhG9/g++Pniw6nl\nmmGo5KNHFW4Iyy2gF/5h+66IzwVlwf1noygkaVuScb3awMGYrJjh78+YgLxm\nBK2yij/i2Phwymbyt+6i59okEtBnv3GqF9bLPd0+UNxG3V7YqvWwOMFEWcyQ\nJURfiV/PsHBAOzfT2qY2JtbsHvqgH5VQmI48gVe+GgFXb4adlk3QmA7xkUUT\nGCa3Dde3noIfgiCbjslkQ8PY0toKH2bEhXUC3m7hElhcqYON10nNXyqWXCRF\n56JD9JOLf2857VRf7mpYBx9boZMRgRzwuIczVI238Y0mZmpUgo9HRVtOVQHi\noHLWqz1AdgE/DeqQI6iAkR/9XE1cgzkFlYZ0j7KxaP2ExliVMZbEvketKZeG\nnxv8pa1UiM+B5Zhuh0rwPhpVg+x3VaVXG/8oY0pvr2cNhF1Gi3Dr5wK9SqxG\n6dnOHWl/f1Afj7RPJWQBiR4tm9y0Wm2SE30R5wp7Ffrxh4ychUxK+QuZpLub\ni9hGcbbyypiK4MOxNLsbCSI+UITmacLsS0PqbODgOpkq/XWa72vIUaHf16xH\nk9sSRzlt+7pMdnyzVnpz/N0u68QEf0SRxAoRlcw74m7X4xUwL+sPh5oJI13A\n/iXs1HFJdYIxNXdh6GmbSjsZJEL3GmF9klakWxHwGqEiTB1umM9SWdHzlnp2\nqoqF\r\n=/8EE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDwbJN/wfp8azQv69Y148px+2NYPwsurfOZOo66XxWXGwIhAJqm4f8h/ag6eriENqJg3VKEnTJC30rXCttcZaqcidTL"}]},"maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lore-hook-websockets-sails_0.13.0_1529805087781_0.05826928305612866"},"_hasShrinkwrap":false}},"readme":"# lore-hook-websockets-sails\n\nThe Sails hook behaves identical to the SocketIo hook, except for the implementation. The big callout here is that \nyou need to install both the `socket.io-client` _and_ the `sails.io.js` package (that takes the socket.io client as \nan argument). You also need to set the URL _immediately_ after creating this object, as it will try to call out to \nthe server. Alternatively, you can set `io.sails.url.authConnect = false`. I'm still playing with this implementation \na bit, but am leaning towards that solution (so that it doesn't make ANY server calls until you tell it to).\n\nThe other thing to point out is the `dispatch` implementation. For the most part Sails used a message structure \nconsisting of `verb` and `data` fields, but sometimes replaces `data` with `previous` when it comes to updated and \ndeleted data. So the parse method has been modified to convert everything into a verb/data structure.\n\n``` js\nvar _ = require('lodash');\nvar WebSocketConnection = require('lore-websockets').WebSocketConnection;\nvar io = require('socket.io-client');\nvar SailsIOClient = require('sails.io.js');\n\nvar SOCKET_VERBS = {\n  CREATED: 'created',\n  UPDATED: 'updated',\n  DESTROYED: 'destroyed',\n  ADDED_TO: 'addedTo'\n};\n\nmodule.exports = WebSocketConnection.extend({\n\n  // serverUrl: 'http://localhost:1337',\n  // namespace: '/posts',\n  // event: 'post',\n\n  initialize: function(dispatchers, actions) {\n    this.io = SailsIOClient(io);\n    this.io.sails.url = this.serverUrl;\n  },\n\n  connect: function() {\n    var namespace = this.namespace;\n    // we have to make a GET request to this endpoint before we're connected\n    this.io.socket.get(namespace, function() {\n      console.log(`Connected to ${namespace}`);\n    });\n  },\n\n  subscribe: function() {\n    this.io.socket.on(this.event, this.dispatch);\n  },\n\n  unsubscribe: function() {\n    this.io.socket.off(this.event, this.dispatch);\n  },\n\n  parse: function(message) {\n    if (message.verb === SOCKET_VERBS.CREATED) {\n      return {\n        verb: message.verb,\n        data: message.data\n      }\n    } else if (message.verb === SOCKET_VERBS.UPDATED) {\n      return {\n        verb: message.verb,\n        data: message.data\n      }\n    } else if (message.verb === SOCKET_VERBS.DESTROYED) {\n      return {\n        verb: message.verb,\n        data: message.previous\n      }\n    } else if (message.verb === SOCKET_VERBS.ADDED_TO) {\n      return {\n        verb: message.verb,\n        data: message.data\n      }\n    } else {\n      return {\n        verb: 'unknown_verb',\n        data: message\n      }\n    }\n  }\n\n});\n```\n","maintainers":[{"name":"jchansen","email":"jason_hansen@outlook.com"}],"time":{"modified":"2022-06-19T14:20:17.528Z","created":"2016-09-09T21:01:52.112Z","0.9.0-rc.1":"2016-09-09T21:01:52.112Z","0.9.0":"2016-09-11T08:32:45.146Z","0.10.0-beta.1":"2016-10-04T09:22:11.023Z","0.10.0":"2016-10-13T05:42:12.218Z","0.11.0-beta.1":"2016-12-12T06:24:32.618Z","0.11.0-rc.1":"2017-01-24T06:25:19.929Z","0.11.0":"2017-01-29T04:55:20.294Z","0.12.0-beta.1":"2017-03-06T00:00:19.180Z","0.11.5":"2017-05-02T08:04:58.559Z","0.12.0-rc.1":"2017-05-02T08:55:59.233Z","0.12.0":"2017-05-08T05:00:27.849Z","0.12.6":"2017-07-04T05:09:38.338Z","0.12.7-rc.1":"2017-07-09T22:16:19.557Z","0.13.0-beta.1":"2017-09-18T19:57:33.651Z","0.13.0-beta.3":"2017-09-18T22:31:51.706Z","0.13.0-beta.5":"2017-11-14T20:53:00.318Z","0.13.0-beta.6":"2017-11-14T22:26:27.466Z","0.13.0-beta.7":"2017-11-14T22:38:56.962Z","0.13.0-beta.9":"2017-11-25T07:18:36.835Z","0.13.0-beta.10":"2017-12-14T21:20:29.917Z","0.13.0-beta.11":"2017-12-19T20:45:51.420Z","0.13.0-beta.12":"2018-03-05T01:56:05.004Z","0.13.0-beta.13":"2018-03-25T01:06:48.635Z","0.13.0-beta.14":"2018-03-31T21:18:36.281Z","0.13.0-beta.15":"2018-04-10T02:59:35.356Z","0.13.0-beta.16":"2018-04-26T21:20:55.079Z","0.13.0-rc.1":"2018-05-13T18:43:04.563Z","0.13.0-rc.2":"2018-05-21T00:30:30.631Z","0.13.0":"2018-06-24T01:51:27.897Z"},"keywords":["lore","hook","websockets","sails"],"license":"MIT","readmeFilename":"README.md"}