Prescription Net
This exposes the core node.js net
module as a set of functions that
return Prescription FRP Observable
s instead of taking callbacks.
Example
Echo server:
var net = ; // Create a server instancevar server = ; // Make the server listen on port 3000, we're only interested in the connection// Observable, so we subscribe() that one through and we subscribe to each of// the sockets it's emit back to themselves (echo server)serverconnection;
TCP client:
var net = ;var client = ;var observables = client;var connect = observablesconnect;var socket = observablessocket; socket;connect;