Implements a sub-set of socket.io functionality.