Skip to content

Latest commit

 

History

History
34 lines (30 loc) · 799 Bytes

README.md

File metadata and controls

34 lines (30 loc) · 799 Bytes

Xinmoy Socket

Distributed Socket Framework Based on Swoole

Features

  • It supports MySQL master/slave architecture.
  • It supports Redis master/slave architecture.
  • It supports CURL.

Xinmoy Socket App

App\Server

<?php
namespace App;


use Xinmoy\Server\Server as XinmoyServer;


class Server extends XinmoyServer {
    public function onTest($server, $fd, $reactor_id, $data) {
        $this->send($fd, 'test');
    }
}

Xinmoy Socket Protocol

Test

{
    "type": "test",
    "data": null
}

Documentation

For more information, please visit Wiki.