How can I integrate Rasa in my flutter app using socket and not the usual HTTP calls

I want to integrate rasa in my flutter application using socket. In my website it got integrated perfectly. Any documentation or resources would be helpful. Thanks