up9cloud/engine.io-php-client 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱: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
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固