ChannelFuture future = lastWriteFuture = super.write(obj);
return future;
}
NetSocket createNetSocket() {
DefaultNetSocket socket = new DefaultNetSocket(vertx, channel, context);
Map<Channel, DefaultNetSocket> connectionMap = new HashMap<Channel, DefaultNetSocket>(1);
connectionMap.put(channel, socket);
// remove old http handlers and replace the old handler with one that handle plain sockets
channel.pipeline().remove("httpDecoder");