forked from https://github.com/uhyo/socketchat and Kururin helped me with a part of APIClient