feature(socket) add minification and gzip