Download the PHP package devweyes/ws-server-cluster without Composer

On this page you can find all versions of the php package devweyes/ws-server-cluster. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ws-server-cluster

swoft websocket cluster

1. 介绍

基于swoole websocket server的swoft websocket已经很方便的开箱即用,但其无法直接支持多机器集场。

本组件可支持大多数web推送场景,IM互聊场景,IM群发场景等。

使用前请通读Swot webdocket Server文档,配置习惯与其并无任何变化。

流程请参见下图

2. 特性

3. 安装

composer

redis

默认使用redis内存服务器作为状态保存,消息队列。所以你还需至少一台redis服务器或集群

4. 使用

基本使用

使用命令,,, 请参见Swot webdocket Server文档

一个完整的需配置全部已知方法注解,用于实现切面。包括... ,可由代替,否则可能无法正常使用。

集群配置

默认配置,如需自定义可覆盖。

bean.php添加异步进程消息处理

bean.php添加消息控制器中间键()

新增中间键概述

onHandshakeMiddleware 中间键

onOpenMiddleware 中间键

内置用户绑定中间键,替换此中间键一般需实现用于用户绑定

消息推送Api

Swoft对单机推送的支持,详见 Swot webdocket Server消息推送Api

Cluster支持对所有服务器的任意客户端直推消息

内置事件

消息接收

用户注册

用户注销

server服务心跳

server服务离线


All versions of ws-server-cluster with dependencies

PHP Build Version
Package Version
Requires php Version >7.1
ext-redis Version *
ext-json Version *
ext-mbstring Version *
swoft/websocket-server Version ~2.0.0
swoft/redis Version ~2.0.0
swoft/stdlib Version ~2.0.0
swoft/serialize Version ~2.0.0
swoft/bean Version ~2.0.0
devweyes/queue Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package devweyes/ws-server-cluster contains the following files

Loading the files please wait ....