文件名称:changeio:用于通过 websockets 从 nodejs 服务器到客户端发布资源和实体更改的包
文件大小:5KB
文件格式:ZIP
更新时间:2024-08-09 23:58:19
JavaScript
改变 用于通过 websockets 从 nodejs 服务器到客户端发布资源和实体更改的包 安装 npm install changeio 用法 在服务器上 //create change io server var changeio = new ChangeIO({}); //use simple AMQP-style topic patterns to choose changes that a client will see changeio.qualify('stock.tokyo.*') changeio.qualify('commodities.nyse.*') //use a function to setup the patterns changeio.qualify(function(connection, callback){ var host = connec
【文件预览】:
changeio-master
----.jshintrc(370B)
----src()
--------changeio.js(3KB)
----LICENSE(1KB)
----test()
--------.jshintrc(510B)
--------changeio.js(1KB)
----README.md(1KB)
----.gitignore(526B)
----package.json(948B)