定制 up9cloud/engine.io-php-client 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

up9cloud/engine.io-php-client

最新稳定版本:2.0.2

Composer 安装命令:

composer require up9cloud/engine.io-php-client

包简介

The php client for [engine.io](https://github.com/socketio/engine.io).

README 文档

README

The php client for engine.io.

version engine.io version
v1 v1
v2 v2, v3

Installation

composer require up9cloud/engine.io-php-client

Usage

require_once __DIR__.'/vendor/autoload.php';
use eio\Client;

$client = new Client('ws://localhost:9527');
$client->send(json_encode([
	'channel'=>'all',
	'message'=>'helloworld'
]));

Advanced

require_once __DIR__.'/vendor/autoload.php';
use eio\Client;

$options = [
	// TODO: see src/Transport.php
];
// builtin debug method
$debug = true;

// custom debug method
$debug = function ($time, $messages){
	printf('[%.4f]: %s' . PHP_EOL, $time, $messages);
};
$client = new Client($uri, $options, $debug);

统计信息

  • 总下载量: 57
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-24