My co-founder and I recently created a chat SDK and we've published it on GitHub. It handles real-time messaging using WebSockets and remains stable even in the presence of proxies, load balancers and personal firewalls. We hope it helps you build your chat app or integrate chat into your project. Feel free to share your thoughts. Any feedback is highly appreciated.