🔗 Multi-Project Communication Server

Server Status: Checking...

📡 API Endpoints

📁 Project Files

💡 Usage Examples

PHP (Send from Project1 to Project2):

$comm = new Project1Communication();
$result = $comm->sendToProject('project2', [
    'order_id' => 123,
    'status' => 'completed'
], 'order_update');

JavaScript (Receive in Project2):

const project2 = initProjectCommunication('project2', { debug: true });
project2.onMessageType('order_update', (data, meta) => {
    console.log('Order update from', meta.from, ':', data);
});

API (Direct HTTP call):

POST /api/send
{
    "from": "project1",
    "to": "project2", 
    "data": {"order_id": 123, "status": "completed"},
    "type": "order_update"
}