angularjs - Angular with socket.io & backend php -


i working on realtime app (chat) & using angular , backend php(codeigniter restapi) database in mongodb hear somewhere socket.io best library socket (use real time) , , see socket.io use node.js , may need basic knowledge of node or other feasible way work socket.io , angular , php

you have 3 ways:

*use node.js server *

it depends how large api. in opinion mongodb , sockets node.js better php.why? mongodb using json format , nodejs javascript server better handle json. nodejs have non-blocking io faster socket php. can read more here. nodejs simple learn.

*use php sockets *

you don't need start new node.js server if have alredy php. can use library similar socket.io. lets check: elephant io

*use php api , node socket *

i think don't need use data api socket. can create node server sockets calls , php server api calls.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -

php - Accessing static methods using newly created $obj or using class Name -