Added server-side support for chatting.