Create node example directory

This commit is contained in:
Travis LaDuke
2017-06-28 09:35:11 -07:00
parent efe5d15143
commit fc210c9be5
12 changed files with 236 additions and 0 deletions

13
examples/node/libzt.js Normal file
View File

@@ -0,0 +1,13 @@
var nbind = require('nbind')
var ZT = nbind.init().lib.ZT
module.exports = {
accept: ZT.accept,
bindPort: ZT.bind,
getDeviceId: ZT.getDeviceId,
getIpV4Address: ZT.getIpV4Address,
listen: ZT.listen,
running: ZT.running,
simpleStart: ZT.simpleStart,
socket: ZT.socket
}