Realize event mechanism for client