S
S
semki0962019-12-26 13:47:27
Node.js
semki096, 2019-12-26 13:47:27

Is it possible to use socket.io in a php application and what problems can I face in my case?

I have a task - to display a graph in real time. I want to use socket.io for this. But I'm new to node.js and have questions.
1. Can I use php and node.js as a backend at the same time, what problems can I face? For example, I want to do authorization, routing in php. And on sockets - send real-time data (in the form of a quote chart, the data of which I receive via api from a third-party service). That is, for example, you need to give this page only to an authorized user.
In short, the question is - is it worth using php or in my case everything needs to be done on the node? I would be grateful for advice.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Suntsev, 2019-12-26
@semki096

In a php application on the back, you will not be able to run js code as long as it is php.
You can run a node application side by side and combine them through the base.
Judging by the issue with the problems you will encounter, with a variety of.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question