Make a new transform stream every time the socket emits 'end'.
Switch to my own JSONStream transform because I'm about to rewrite
it even further than I have.