[TS] Add a socket handling implementation that uses Node.JS's `net`