kentczhy/swsocket

easy to set up websocket by swoole

v0.1.3 2020-06-08 10:17 UTC

This package is auto-updated.

Last update: 2025-09-08 22:53:09 UTC


README

This library provides a way of easy to set up websocket.

Installation

The suggested installation method is via composer:

composer require "kentczhy/swsocket"

Usage

PHP extension Swoole > 4.2.0 needs to be installed

config/app.php

\Kentczhy\Swsocket\Providers\SwsocketServiceProvider::class

# add config swsocket.php and copy html test file

php artisan vendor:publish
 
# start server

php artisan swoole:server