A
A
alex_999_02020-06-12 11:41:18
In contact with
alex_999_0, 2020-06-12 11:41:18

How to properly organize a chat using the VK API in Laravel?

I am writing such a site to order: a panel with VK dialogs from several accounts, i.e. in the settings, tokens of several VK accounts have been added, and dialogs of all these accounts together are displayed on a separate page. You also need to implement sending messages from these accounts, that is, everything is like in VK, only a few accounts. All this on laravel.
And my question is, what is the best way to implement messaging? There is a User Long Poll API method, using it we get VK messages. I also heard about websockets, I have never used them, and therefore I don’t know how to arrange this whole thing correctly. Also, all requests will be via ajax. Tell me, please, in which direction it is better for me to go than to use. Need a websocket or not. Or is there something convenient for laravel.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question