Thank you for your question. I’m checking if it’s possible to use the package you mentioned and will get back to you as soon as I can. If using the package is possible, you’ll need to use it in an app function, which will allow you access to external resources.
Based on your reply, then I don’t think it is possible to use websockets, since for the chat a websocket needs to stay open for as long as the user interacts with the app; but in app functions there is this requirement:
I’ve checked with an internal team. Unfortunately for your case, WebSockets are not supported for security reasons, and any third party module using them won’t work properly. I hope this answer at least saves you some further inquiry. 😉