Mock sockets for nodejs