Answer the question
In order to leave comments, you need to log in
How can I implement it so that when a user enters the site, send him data via websocket?
Implementation for vk mini apps, the user id is passed to the url, I made sure that the data is saved in cookies, but it is possible to try to hack when changing cookies, the site is on flask, websockets is separate
Answer the question
In order to leave comments, you need to log in
Cookies cannot be used in vk mini apps because they can be lost. Use data from launch options https://vk.com/dev/vk_apps_docs3?f=6.%2B%D0%9F%D0%... or store data in vkshny storage https://vk.com/dev/vk_bridge_events_11 ?f=6.%2B%D0%...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question