B
B
Barrakuda742018-09-18 15:41:00
Notifications
Barrakuda74, 2018-09-18 15:41:00

Client card for an incoming call - push notification or websocket?

Good afternoon. Tell me how best to implement the opening of a customer card when calling? Implementation in PHP and JS (without frameworks). I haven’t come across push or websocket yet, now I need to master and choose one of these things. Can both of these technologies be applied to solve my problem? What are the pros/cons of both? I understand that push managers will see better, because. they can be seen on any page in the browser (or in general, in my opinion, even when it is minimized, correct me if I'm wrong). But the downside is that the push window cannot be changed, i.e. if the call is terminated, this window cannot be removed, the manager must turn it off himself. Maybe someone knows what other features there are, and what is still better suited?
PS: or maybe even long polling or Server Side Events?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Taratin, 2018-09-18
@Taraflex

Native Qt application. Out of the box, there is an implementation of web sockets and the ability to write an entire application in qml (js-like language with biases in declarativeness).
You can close and open anything, anytime.
On the server, I would not cut web sockets in php. Though if who prompts stable implementation, I will be glad to hear. Better IMHO to look towards go or nodejs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question