'How to connect socket, and how to connect, emit and receive data from socket using php rest api. I am using codeigniter 3
Now I am developing a web application and doing REST API for mobile. The REST API is developed by using Codeigniter 3. Now I have a requirement to manage all notifications and alerts in web and mobile using sockets to make it real-time. Mobile app, its manageable using nodejs and javascript. In website also its manageable using javascript and socket.io or websocket.
Now from mobile and web, it can be accessing javascript, node js to socket with port 5000. But how can I connect same socket server on same port and how to call emit and on events from REST API functions(PHP).
Is this possible?
Need help.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
