Add some simple api docs for transport.js