I am trying to implement a " Chat rooms " for a mobile application, I want to use communication channels as in django of python socket , but errors occurs. my question is “Is sockets are not supported by anvil, is there a certain library to import”.
First, I never tried websockets in anvil - so I can’t help there.
Not sure what your usecase exactly is but I would try to go a simpler way. There are some Databases that allow for live sync, google firestore, supabase, mongodb-realm. for example
Just use them, subscribe to a document (which would represent a room in your case) and changes will be propagated to all users subscribed to that room/docuent.
There is a Firebase SDK for Anvil which you could use to get started.
Good luck with your project!
You could also try to use MQTT with anvil. There are Demo Codes availabe like
here: MQTT sample code
and
here: MQTT Made Simple [Websocket]
for testing purpose you can use the public mqtt broker : broker.emqx.io
It is just an idea to use mqtt which also might be a good fit for a chat application.
Good luck!
I’ve probably misunderstood, but have you checked out publish/subscribe on Anvil Extras?
Thank you for your valued descution . I am still in free plan. do you think using “Custom Mail Server” and “Custom Domain” in Personal Plan to make Emailing between the application users is Possible. if possible I think Chatting rooms will be also possible.
I don’t understand your question. Can you be more specific about what you have in mind? What about the email docs is unclear to you?
p.s. Please do not re-post the same question in multiple places on the forum. That harms the organization of forum discussion and creates extra work for the folks volunteering to answer your questions. After your question is answered in one place, it still looks unanswered in another place, inducing someone to waste their time answering a question that has already been answered. (I will delete your posts in other places.)