refactor to use tcpServerTransport and update package.json deps