Fix ws+unix support by not overriding the protocol to 'ws'

With this and by supplying `pathname` to `createSocket`, I have unix socket connections working.

I made a start on writing a test but `transformer.base.js` uses `localhost` TCP throughout.