crypted-udp

0.0.1 • Public • Published

CryptedUDP

JSON-RPC with AES-256-CBC crypted UDP sockets over IPv4 for NodeJs

  node = new CryptedUdp
    address: '127.0.0.1'
    port: 41235
    id: 'da39a3ee5e6b4b0d3255bfef95601890afd80709' # optional sha1 unique client self id 
  
  node.on 'message'(msg) ->
    console.log msg
 
  node.connect '127.0.0.1'41236->
    @send { foo: "bar" }(msg) ->
      JSON.stringify msg
 
  # Also   
  peer = node.connect '127.0.0.1'41236
  peer.send { foo: "bar" }(msg) ->
    JSON.stringify msg
    

Tests

You need mocha installed

npm test

Compile to JavaScript

npm run-script compile

Readme

Keywords

none

Package Sidebar

Install

npm i crypted-udp

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • maxsvargal