Abandon SocketMixin
remove SocketMixin and bring in #optimize instead, then use it.