Making JsonPollingTransport extends ChannelDuplexHandler and reducing
buffer copies.