Adding server-side chat listener.