Releases: sockeon/sockeon
v2.2.0 - Advanced Scaling Features
Advanced Scaling Features
This release introduces advanced scaling capabilities with proper package distribution configuration.
New Features
- Connection Pooling: Efficient connection reuse for better resource utilization
- Async Task Queue: Background processing for heavy operations
- Performance Monitoring: Comprehensive metrics tracking
- Enhanced Rate Limiting: Improved defaults for higher capacity (1000 HTTP requests, 2000 WebSocket messages, 500 connections per IP)
Changes
- Added
ConnectionPoolclass for connection reuse - Added
AsyncTaskQueuefor async task processing - Added
PerformanceMonitorfor tracking server metrics - Enhanced
SocketControllerwith new scaling methods - Improved connection lifecycle management
- Better error handling and resource cleanup
- Added
.gitattributesfor proper package distribution (excludes tests, docs, and development files)
v2.1.1
v2.1.0
Release v2.0.0
What's Changed
- 2-implement-class-based-events by @xentixar in #3
- Dev by @xentixar in #20
- Merge 1x into main by @xentixar in #26
- Merge 1x into main by @xentixar in #28
- 1.x by @xentixar in #29
- Refactor CorsConfig: Update configuration keys from 'origins', 'methods', 'headers', and 'credentials' to 'allowed_origins', 'allowed_methods', 'allowed_headers', and 'allow_credentials' for consistency by @xentixar in #30
- Feature/implement route specific middlewares by @xentixar in #31
- Merge 1x into main by @xentixar in #32
- feature/client-side-classes-implementation by @xentixar in #33
- Merge main into 1.x by @xentixar in #34
- Merge main to 1.x by @xentixar in #35
- Make event broadcast global by @xentixar in #36
- implement-multi-room-dispatching by @xentixar in #37
- Refactor directory structure and code by @xentixar in #38
- authentication-framework by @xentixar in #39
- Merge 1.x into main by @xentixar in #42
- refactor-code by @xentixar in #43
- implement-websocket-handshake-middleware by @xentixar in #44
- fix-post-body-parsing-issue by @xentixar in #45
- implement-exclude-route-and-event-for-global-middlewares by @xentixar in #46
- fix-data-issue by @xentixar in #47
- 8 rate limiting by @xentixar in #48
- fix-upgrade-websocket-issue by @xentixar in #49
- input-validation-and-sanitization by @xentixar in #50
- fix-incomplete-websocket-frame-handling by @xentixar in #51
Full Changelog: v1.2.0...v2.0.0
Socklet v1.2.0
What's Changed
Full Changelog: v1.1.0...v1.2.0
Sockeon v1.1.0
What's Changed
Full Changelog: v1.0.0...v1.1.0
Sockeon v1.0.0
Sockeon v1.0.0 Release Notes
We are excited to announce the first stable release of Sockeon, a framework-agnostic PHP WebSocket and HTTP server library that provides powerful real-time communication capabilities with minimal setup.
Overview
Sockeon v1.0.0 brings a mature, feature-complete implementation for building real-time applications in PHP. With its attribute-based routing, support for namespaces and rooms, and zero external dependencies, Sockeon provides a robust foundation for creating interactive web applications.
Key Features
Combined WebSocket & HTTP Server
- Single server handling both WebSocket connections and HTTP requests
- Built using native PHP sockets without external dependencies
- Event-driven architecture for efficient resource usage
Attribute-Based Routing
- Intuitive
#[SocketOn('event')]attribute for WebSocket event handlers - Simple
#[HttpRoute('METHOD', '/path')]attribute for HTTP endpoints - Path parameters with
{parameter}syntax for dynamic routing
Advanced WebSocket Features
- Namespace support for organizing connection groups
- Room-based communication for targeted message delivery
- Bidirectional real-time communication with automatic JSON handling
- Client connection management with custom data storage
HTTP Capabilities
- RESTful API support with content negotiation
- Query parameter and request body parsing
- Structured Request and Response objects
- JSON response helpers for API development
Developer Experience
- Framework-agnostic design - works with any PHP project
- Middleware support for authentication and request processing
- Comprehensive error handling and debugging
- Extensive documentation and examples
Requirements
- PHP 8.0 or higher
Installation
composer require sockeon/sockeonDocumentation
Visit our comprehensive documentation at https://sockeon.github.io for guides, API references, and examples to get started quickly.
What's Next
This initial stable release establishes a solid foundation for future development. We are committed to maintaining backward compatibility while introducing new features and improvements in upcoming releases.
Thank You
We would like to thank all contributors and early adopters who provided valuable feedback during the development of Sockeon. Your input has been instrumental in shaping this release.
The Sockeon Team
GitHub: https://github.com/sockeon/sockeon