Skip to content

oakwilliams/xinmoy-socket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.