Download the PHP package kanata-php/conveyor-server-client without Composer
On this page you can find all versions of the php package kanata-php/conveyor-server-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kanata-php/conveyor-server-client
More information about kanata-php/conveyor-server-client
Files in kanata-php/conveyor-server-client
Package conveyor-server-client
Short Description Server-Side WebSocket Client ready for Socket Conveyor
License MIT
Homepage https://github.com/firebrikdotcom/conveyor-server-client
Informations about the package conveyor-server-client
A server-side client for the php package kanata-php/socket-conveyor
Prerequisites
- PHP >= 8.0
- PHP OpenSwoole Extension
Install
Description
This is a server-side client for the Socket Conveyor PHP package.
Usage
Once installed, the following example shows how it works to use this package.
With the previous example you'll have a PHP script connected and waiting for messages to come. For each message received there will be a printed message in the terminal executing this script. This client will try to connect to ws://127.0.0.1:8000. To understand more Socket Conveyor channel and listeners you can head to its documentation.
Important: this example doesn't have timeout. This means it will be running until its process gets killed. If you just need to listen for a limited time, or need a timeout for any other reason, use the
timeoutoption.
This package has the following options (showing its respective defaults):
This is this package's Conveyor Client interface:
Author
👤 Savio Resende
- Website: https://savioresende.com.br
- GitHub: @lotharthesavior
📝 License
Copyright © 2022 Savio Resende.
All versions of conveyor-server-client with dependencies
ext-openswoole Version ^26.2
textalk/websocket Version ^1.6.3
psr/log Version ^3.0.2