How to use the Connect function from bindings
Find comprehensive JavaScript bindings.Connect code examples handpicked from public code repositorys.
GitHub: reqshark/nanomsg.iojs
![reqshark profile picture](/reqshark.png?size=40)
160 161 162 163 164 165 166 167 168
if(eid < 0) throw new Error(nn.Err() +': '+this.type+' bind@' + addr+'\n') this.how[addr] = [eid,'bind']; return this } function connect (addr) { var eid = nn.Connect( this.socket, addr ) if(eid < 0) throw new Error(nn.Err() +': '+this.type+' connect@' + addr+'\n') this.how[addr] = [eid,'connect']; return this }
+ 21 other calls in file
bindings.createKey is the most popular function in bindings (8616 examples)