{"_id":"socketio-wildcard","_rev":"1743560","name":"socketio-wildcard","description":"socket.io with a wildcard event","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"hden","email":"kenting8707@hotmail.com"}],"time":{"modified":"2021-11-29T01:33:48.000Z","created":"2014-05-30T15:55:32.062Z","2.0.0":"2017-05-22T15:28:39.833Z","0.4.0":"2017-03-15T04:11:12.245Z","0.3.0":"2015-12-21T08:12:36.629Z","0.2.0":"2015-11-29T02:58:19.014Z","0.1.1":"2014-05-31T02:51:00.237Z","0.1.0":"2014-05-30T15:55:32.062Z"},"users":{"asaupup":true,"nuwaio":true},"author":{"name":"Hao-kang Den","email":"haokang.den@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/hden/socketio-wildcard.git"},"versions":{"2.0.0":{"name":"socketio-wildcard","version":"2.0.0","description":"socket.io with a wildcard event","main":"index.js","scripts":{"test":"standard && mocha"},"repository":{"type":"git","url":"git+https://github.com/hden/socketio-wildcard.git"},"keywords":["socket.io","websocket"],"author":{"name":"Hao-kang Den","email":"haokang.den@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/hden/socketio-wildcard/issues"},"homepage":"https://github.com/hden/socketio-wildcard","devDependencies":{"espower-loader":"^1.2.2","intelli-espower-loader":"^1.0.1","mocha":"^3.3.0","power-assert":"^1.4.2","socket.io":"^2.0.1","socket.io-client":"^2.0.1","standard":"^10.0.2"},"gitHead":"acd8083675646e285ab2e363cb49a3153b18edec","_id":"socketio-wildcard@2.0.0","_shasum":"2466e832276b19163563bee772388747f912475b","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"hden","email":"kenting8707@hotmail.com"},"dist":{"shasum":"2466e832276b19163563bee772388747f912475b","size":3160,"noattachment":false,"key":"/socketio-wildcard/-/socketio-wildcard-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/socketio-wildcard/download/socketio-wildcard-2.0.0.tgz"},"maintainers":[{"name":"hden","email":"kenting8707@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/socketio-wildcard-2.0.0.tgz_1495466919709_0.8749534657690674"},"directories":{},"publish_time":1495466919833,"_cnpm_publish_time":1495466919833,"_hasShrinkwrap":false},"0.4.0":{"name":"socketio-wildcard","version":"0.4.0","description":"socket.io with a wildcard event","main":"index.js","scripts":{"test":"standard && mocha"},"repository":{"type":"git","url":"git+https://github.com/hden/socketio-wildcard.git"},"keywords":["socket.io","websocket"],"author":{"name":"Hao-kang Den","email":"haokang.den@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/hden/socketio-wildcard/issues"},"homepage":"https://github.com/hden/socketio-wildcard","devDependencies":{"espower-loader":"^1.0.1","intelli-espower-loader":"^1.0.1","mocha":"^3.1.2","power-assert":"^1.4.1","socket.io":"^1.5.1","socket.io-client":"^1.5.1","standard":"^8.5.0"},"gitHead":"3a2f3420251fabaf7e44a2f55f430a0016f11dab","_id":"socketio-wildcard@0.4.0","_shasum":"cf92bcc769e51d5807949f1400a168524b95dc2e","_from":".","_npmVersion":"4.0.5","_nodeVersion":"7.4.0","_npmUser":{"name":"hden","email":"kenting8707@hotmail.com"},"dist":{"shasum":"cf92bcc769e51d5807949f1400a168524b95dc2e","size":3117,"noattachment":false,"key":"/socketio-wildcard/-/socketio-wildcard-0.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/socketio-wildcard/download/socketio-wildcard-0.4.0.tgz"},"maintainers":[{"name":"hden","email":"kenting8707@hotmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/socketio-wildcard-0.4.0.tgz_1489551070398_0.18356431042775512"},"directories":{},"publish_time":1489551072245,"_cnpm_publish_time":1489551072245,"_hasShrinkwrap":false},"0.3.0":{"name":"socketio-wildcard","version":"0.3.0","description":"socket.io with a wildcard event","main":"index.js","scripts":{"test":"standard && mocha"},"repository":{"type":"git","url":"git+https://github.com/hden/socketio-wildcard.git"},"keywords":["socket.io","websocket"],"author":{"name":"Hao-kang Den","email":"haokang.den@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/hden/socketio-wildcard/issues"},"homepage":"https://github.com/hden/socketio-wildcard","devDependencies":{"espower-loader":"^1.0.0","intelli-espower-loader":"^1.0.0","mocha":"^2.3.4","power-assert":"^1.2.0","socket.io":"^1.3.7","socket.io-client":"^1.3.7","standard":"^5.4.1"},"gitHead":"d03e225593159b22bba92bf8c95e2aa33bd04b85","_id":"socketio-wildcard@0.3.0","_shasum":"8155add41e111d0f27c659d48efa0e81f13daa80","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"hden","email":"kenting8707@hotmail.com"},"maintainers":[{"name":"hden","email":"kenting8707@hotmail.com"}],"dist":{"shasum":"8155add41e111d0f27c659d48efa0e81f13daa80","size":3090,"noattachment":false,"key":"/socketio-wildcard/-/socketio-wildcard-0.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/socketio-wildcard/download/socketio-wildcard-0.3.0.tgz"},"directories":{},"publish_time":1450685556629,"_cnpm_publish_time":1450685556629,"_hasShrinkwrap":false},"0.2.0":{"name":"socketio-wildcard","version":"0.2.0","description":"socket.io with a wildcard event","main":"index.js","scripts":{"test":"standard && mocha"},"repository":{"type":"git","url":"git+https://github.com/hden/socketio-wildcard.git"},"keywords":["socket.io","websocket"],"author":{"name":"Hao-kang Den","email":"haokang.den@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/hden/socketio-wildcard/issues"},"homepage":"https://github.com/hden/socketio-wildcard","devDependencies":{"espower-loader":"^1.0.0","intelli-espower-loader":"^1.0.0","mocha":"^2.3.4","power-assert":"^1.2.0","socket.io":"^1.3.7","socket.io-client":"^1.3.7","standard":"^5.4.1"},"gitHead":"01ea305896989291cbf614355857b31fa3914416","_id":"socketio-wildcard@0.2.0","_shasum":"3a59b153aa6b915a3c8ca0407325a4fffe6be561","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"hden","email":"kenting8707@hotmail.com"},"maintainers":[{"name":"hden","email":"kenting8707@hotmail.com"}],"dist":{"shasum":"3a59b153aa6b915a3c8ca0407325a4fffe6be561","size":2804,"noattachment":false,"key":"/socketio-wildcard/-/socketio-wildcard-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/socketio-wildcard/download/socketio-wildcard-0.2.0.tgz"},"directories":{},"publish_time":1448765899014,"_cnpm_publish_time":1448765899014,"_hasShrinkwrap":false},"0.1.1":{"name":"socketio-wildcard","version":"0.1.1","description":"socket.io with a wildcard event","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/hden/socketio-wildcard.git"},"keywords":["socket.io","websocket"],"author":{"name":"Hao-kang Den","email":"haokang.den@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/hden/socketio-wildcard/issues"},"homepage":"https://github.com/hden/socketio-wildcard","devDependencies":{"mocha":"~1.20.0","socket.io":"~1.0.2","socket.io-client":"~1.0.2","coffee-script":"~1.7.1","chai":"~1.9.1"},"_id":"socketio-wildcard@0.1.1","dist":{"shasum":"1a87becbeb9bb78e29d2b3dcb66866ea795b35e6","size":2610,"noattachment":false,"key":"/socketio-wildcard/-/socketio-wildcard-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/socketio-wildcard/download/socketio-wildcard-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"hden","email":"kenting8707@hotmail.com"},"maintainers":[{"name":"hden","email":"kenting8707@hotmail.com"}],"directories":{},"publish_time":1401504660237,"_cnpm_publish_time":1401504660237,"_hasShrinkwrap":false},"0.1.0":{"name":"socketio-wildcard","version":"0.1.0","description":"socket.io with a wildcard event","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"https://github.com/hden/socketio-wildcard.git"},"keywords":["socket.io","websocket"],"author":{"name":"Hao-kang Den","email":"haokang.den@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/hden/socketio-wildcard/issues"},"homepage":"https://github.com/hden/socketio-wildcard","devDependencies":{"mocha":"~1.20.0","socket.io":"~1.0.2","socket.io-client":"~1.0.2","coffee-script":"~1.7.1","chai":"~1.9.1"},"_id":"socketio-wildcard@0.1.0","dist":{"shasum":"72465c1183b6fb6341ae2e439351fcf71ee49905","size":2682,"noattachment":false,"key":"/socketio-wildcard/-/socketio-wildcard-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/socketio-wildcard/download/socketio-wildcard-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.25","_npmUser":{"name":"hden","email":"kenting8707@hotmail.com"},"maintainers":[{"name":"hden","email":"kenting8707@hotmail.com"}],"directories":{},"publish_time":1401465332062,"_cnpm_publish_time":1401465332062,"_hasShrinkwrap":false}},"readme":"socketio-wildcard\n=================\n\n[![Build Status](https://img.shields.io/travis/hden/socketio-wildcard.svg)](https://travis-ci.org/hden/socketio-wildcard)\n[![Dependencies](https://img.shields.io/david/hden/socketio-wildcard.svg)](https://david-dm.org/hden/socketio-wildcard)\n[![devDependencies](https://img.shields.io/david/dev/hden/socketio-wildcard.svg)](https://david-dm.org/hden/socketio-wildcard#info=devDependencies)\n[![npm](https://img.shields.io/npm/dm/socketio-wildcard.svg)](https://www.npmjs.com/package/socketio-wildcard)\n[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)\n\n[![npm](https://nodei.co/npm-dl/socketio-wildcard.png?height=3)](https://nodei.co/npm/socketio-wildcard/)\n\nSocket.io with a wildcard event.\n\nWorks with Socket.io `v1.x` - `v2.x`.\n\nTested with node.js `v4.x`, `v5.x`, `v6.x`, `v7.x`.\n\nInstallation\n------------\n\n    npm install --save socketio-wildcard\n\n\nUsage\n-----\n\n### Server\n\n```js\nvar io         = require('socket.io')();\nvar middleware = require('socketio-wildcard')();\n\nio.use(middleware);\n\nio.on('connection', function(socket) {\n  socket.on('*', function(packet){\n    // client.emit('foo', 'bar', 'baz')\n    packet.data === ['foo', 'bar', 'baz']\n  });\n});\n\nio.listen(8000);\n```\n\n### Client\n\n```js\nvar io = require('socket.io-client');\nvar socket = io('http://localhost');\n// piggyback using the event-emitter bundled with socket.io client\nvar patch = require('socketio-wildcard')(io.Manager);\npatch(socket);\n\nsocket.on('*', function(){ /* … */ })\n```\n\nChangelog\n---------\n\n### [2.0.0] - 2016-05-23\n- no breaking change\n- update test dependencies for socket.io v2\n\n### [0.3.0] - 2015-12-21\n- allow custom event emitter\n- support socket.io client\n\n### [0.2.0] - 2015-11-29\n- wildcard listener for all events get called first ([@Michael77](https://github.com/Michael77))\n- removed coffee-script dependency\n\nLicence\n-------\nMIT\n","_attachments":{},"homepage":"https://github.com/hden/socketio-wildcard","bugs":{"url":"https://github.com/hden/socketio-wildcard/issues"},"license":"MIT"}