[net] add 'on tcp data' and tcp read/write js binding for testing purposes