Connected server to chat API