- 授权协议: MIT
- 开发语言: JavaScript Lua
- 操作系统: 跨平台
- 软件首页: http://jetbus.io/
- 软件文档: http://jetbus.io/quickstart.html
软件介绍
Jet 是一个用于 Web 的轻量级和实时的消息总线。支持浏览器和 Node.js node-jet,提供 Lua 版本 lua-jet 和基于 Arduino 的版本 Arduino-Jet。
示例代码:
var jet = require('node-jet');
var peer = new jet.Peer({
url: 'ws://jet.nodejitsu.com:80'
});
peer.connect().then(function() {
console.log('peer is connected to daemon');
});
var machineName = new jet.State('machine/name', 'animal');
machineName.on('set', function(newName) {
setMachineName(newName); // does something appropriate
});
peer.add(machineName).then(function() {
console.log('machine/name has been added to daemon');
}).catch(function(err) {
console.log('could not add machine/name to daemon', err);
});
// add a state
var cpuLoad = new jet.State('cpu/load', readCpuLoad());
peer.add(cpuLoad).then(function() {
// async post new value
setTimeout(function () {
cpuLoad.value(readCpuLoad());
},3000);
});添加方法:
// add a method
var greet = new jet.Method('greet');
greet.on('call', function(name) {
if (name.first === 'John') {
throw 'John is a bad guy!';
}
var greeting = 'Hello ' + name.first + ' ' + name.last;
console.log(greeting);
return greeting;
});
peer.add(greet);Effective C# 中文版
Bill Wagner / 李建忠 / 人民邮电出版社 / 2007-5 / 49.00元
本书围绕一些关于C#和.NET的重要主题,包括C#语言元素、.NET资源管理、使用C#表达设计、创建二进制组件和使用框架等,讲述了最常见的50个问题的解决方案,为程序员提供了改善C#和.NET程序的方法。本书通过将每个条款构建在之前的条款之上,并合理地利用之前的条款,来让读者最大限度地学习书中的内容,为其在不同情况下使用最佳构造提供指导。 本书适合各层次的C#程序员阅读,同时可以推荐给高校教......一起来看看 《Effective C# 中文版》 这本书的介绍吧!
