文件名称:spread-bindings:Spread Toolkit客户端协议的Javascript实现
文件大小:8KB
文件格式:ZIP
更新时间:2024-06-08 00:27:50
JavaScript
传播到节点 The Spread Toolkit的Javascript绑定 用法 var spread = require ( "spread-for-node" ) ; //Connecting to a Spread daemon is pretty simple var mbox = spread . connect ( "localhost" , 4803 , "testuser" , 0 , 0 ) ; //Wait until a connection is established. mbox . on ( "connect" , function ( ) { //So is joining a channel mbox . join ( "channel" ) ; //lets send a simple message mbox . multicast ( s
【文件预览】:
spread-bindings-master
----.gitignore(2B)
----package.json(277B)
----LICENSE.md(738B)
----index.js(17KB)
----examples()
--------spuser.js(2KB)
----README.md(737B)
----test()
--------testSpread.js(1KB)