dev-master
9999999-devReal-time messages transfer layer interface for phpfox framework.
MIT
by Nam Nguyen
Real-time messages transfer layer interface for phpfox framework.
Prototype, (*1)
1. $message = new Message(); 2. $recipinents = (select friend of sender).result; 3. $pusher->push($message, $recipinents);
$message = new Message([ id: int, identity of message, name: string, type of message, sender_id: int, who send the message, data: array, link: [], where to redirected, title: string, title of mesage, summary: string, some line describe about message, creation: datetime, when was this posted, expiration: int , when it will expires, ]);
- Each users may connect to multiple servers (scaling). - Each message must be relayed on socket servers. - For maintenance * We support only NodeJS socket server. * Provide cloud NodJS server for the client who have no NodeJs setup environment or testing., (*2)
Solution 01: - Post Message: * Use normal Ajax post to web server. * Response to the client that message is posted. * Server will relay on socket server to deliver messages., (*3)
Solution 02 - Post Message: * Use normal Ajax post to web server. * Response to the client that message is posted. * Server will post to a message queue service (Local, SQS, ...), (*4)
Post Message:, (*5)
Get Message, (*6)
Real-time messages transfer layer interface for phpfox framework.
MIT