I did some research before asking this question, but I could not find a concrete answer to my situation. I'm still new to developing WebSockets and games, so I can't explain some details very well, and if so, tell me so that I can try to explain it better.
I am currently developing a web application using CakePHP that will provide several types of multiplayer HTML5 games. In some situations, these games will need to send data to the database. The problem is that I want to use Node.js to implement the logic on the server side of the game, but I'm not sure that I can transfer data to the database. I think the best approach would be to send data from Node.js to a PHP action, which will then store it in the database, but I also don't know if this will be possible.
I found something about this DNode , but I'm not sure if this is the answer to my problem, and besides, it seems to be in beta, which I would like to avoid.
As an alternative, I thought about using Ratchet to implement logic on the server side of the games. At least I know that I can get him to communicate with my application, but since I cannot find a link to it in game development, I'm not sure if this is a good idea.
I do not know any other frameworks, so if I have better options than these two, tell me :)
Please give me your opinion. Thanks!
source share