fixed socket.cljs to support :error option