D
D
Dev123452020-04-27 13:25:53
Python
Dev12345, 2020-04-27 13:25:53

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

1 answer(s)
I
Ivan Nedzvetsky, 2020-05-25
@Nezd

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 question

Ask a Question

731 491 924 answers to any question