Skip to content

swow-cloud/websocket-server

Repository files navigation

websocket-server

开发中的功能

1.登录

2.注册

3.聊天

功能

1.支持鉴权

2.支持限流

3.提供websocket客户端 工具

4.支持群发和单聊消息

命令

php bin/blend server:start  #启动server 需关掉debug模式

➜  websocket-server git:(main) ✗ php bin/blend server:start 

[02:13:58]  RUNNING  server:start
    > Started a Server in the background with PID: [18548]
[02:13:58]  DONE  10.31ms

php bin/blend server:stop   #关闭server
➜  websocket-server git:(main) ✗ php bin/blend server:stop  

[02:14:24]  RUNNING  server:stop
    > Stopped Server with PID: [18548]
[02:14:24]  DONE  5.43ms

慢慢封装一些swow的组件

1.redis-lock

2.redis-subscriber

3.websocket

4.rate-limit

通过phpbrew安装php8.1.7

phpbrew -d install 8.1.7 \
    +default \
    +fpm \
    +iconv \
    +curl \
    +ctype \
    +filter \
    +json \
    +mbstring \
    +openssl \
    +pdo \
    +sqlite \
    +mysql \
    +phar \
    +sockets \
    +zlib \
    -- \
    --with-zlib-dir=/opt/homebrew/opt/zlib/lib \
    --with-gd=shared \
    --without-pcre-jit \
    --enable-gd-native-ttf 

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published