How to use the es.connect function in es

To help you get started, we’ve selected a few es examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dominictarr / peers / __index.js View on Github external
return net.createServer(function (con) {
     onConnect(
        es.connect(
          es.stringify()
        , con
        , es.split()
        , es.parse()
      )
    )
  }).listen(port, host, ready)
}