Download the PHP package venndev/vosaka-wsock without Composer
On this page you can find all versions of the php package venndev/vosaka-wsock. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package vosaka-wsock
VOsaka WSock
Vosaka Wsock is a high-performance, asynchronous WebSocket library for PHP, designed to be lightweight, extensible, and easy to use. It is built on top of Vosaka Fourotines, leveraging cooperative multitasking for efficient handling of concurrent connections.
Features
- Asynchronous I/O: Fully non-blocking server implementation.
- Room Support: Built-in support for rooms, allowing easy broadcasting to specific groups of clients.
- Middleware: Extensible middleware system (e.g., for rate-limiting, authentication).
- Handshake Control: Customizable handshake logic via
onHandshake. - JSON Ready: Convenient methods for sending and receiving JSON messages.
- Connection Management: Robust connection registry and tracking.
Installation
Install via Composer:
Quick Start
Create a simple chat server by extending AbstractWebSocketHandler:
Core Components
WebSocketServer: The main server class that handles TCP connections and WebSocket handshakes.AbstractWebSocketHandler: Interface/base class for defining your application logic (onOpen, onMessage, onClose).Connection: Represents an active WebSocket client connection.Room: A group of connections for easy broadcasting.ConnectionRegistry: Manages all active connections and their room associations.
Extensions & Dependencies
- venndev/vosaka-fourotines: The underlying coroutine engine.
License
This project is licensed under the MIT License - see the LICENSE file for details.
All versions of vosaka-wsock with dependencies
PHP Build Version
Package Version
Requires
venndev/vosaka-fourotines Version
^1.4
The package venndev/vosaka-wsock contains the following files
Loading the files please wait ...