Adapts Node sockets(net package) to use with q and q-connection