Create node example directory
This commit is contained in:
13
examples/node/libzt.js
Normal file
13
examples/node/libzt.js
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user