laravel-swoole
laravel-swoole copied to clipboard
How to send websocket messages on the server
Make sure you read Issues Guideline and answer these questions before submitting your issue. Thanks! (Any non-English issues will be closed immediately.)
- Please provide your PHP and Swoole version. (
php -v
andphp --ri swoole
)
PHP 7.3.11 (cli) swoole
Swoole => enabled Author => Swoole Team [email protected] Version => 4.4.17 Built => Apr 20 2020 14:49:44 coroutine => enabled epoll => enabled eventfd => enabled signalfd => enabled cpu_affinity => enabled
- Please provide your Laravel/Lumen version.
laravel7
-
Which release version of this package are you using? 2.6
-
What did you do? If possible, provide a recipe for reproducing the error.
Command sends a websocket message
error:Target class [swoole.websocket] does not exist.
- What did you expect to see?
Successfully sent websocket message
- What did you see instead?
Error:Target class [swoole.websocket] does not exist.
@happiness9721 ,
Do you call the websocket instance in the swoole server and turn on websocket mode?
I have no idea😂 guess tag wrong pp? @junshenshi
confirmed Command cant invoke Websocket, using api for a workround 😂