Tags

Tags give the ability to mark specific points in history as being important
  • v1.3.1

    Release v1.3.1
    
    CRITICAL Bug Fix:
    - Added api_key to WebSocket URL for server authentication
    - Fixed handshake: read server's Engine.IO packet instead of sending
    - Wait for Socket.IO CONNECT response before proceeding
    
    Changes:
    - URL: /socket.io/?EIO=4&transport=websocket&api_key=KEY
    - Read handshake: receive '0{...}' from server
    - Send '40' and wait for response
    - Then authenticate
    
    This fixes the issue where server disconnected client immediately.
  • v1.3.0

    Release v1.3.0
    
    MAJOR CHANGE:
    - Replaced ElephantIO with textalk/websocket
    - Implemented Socket.IO v4 protocol manually
    - More reliable connection handling
    
    New Features:
    - Direct WebSocket connection
    - Custom Socket.IO protocol implementation
    - Better error handling
    - Proper packet parsing
    
    Technical Details:
    - Socket.IO EIO=4 protocol
    - Packet types: 0 (CONNECT), 40 (Socket.IO CONNECT), 41 (DISCONNECT), 42 (EVENT)
    - Event format: 42["event",{data}]
    
    This should fix all connection issues with ElephantIO.
  • v1.2.5

    Release v1.2.5
    
    CRITICAL Bug Fix:
    - Added waitForSocketId() to receive socket_id from server
    - Fixes authentication for private/presence channels
    - Fixes event sending issues
    
    Changes:
    - connect() now waits for realtimex:connection_established event
    - socket_id is properly received before subscribing to channels
    - 5 second timeout with 50ms polling interval
    
    This fixes the root cause of events not reaching the server.
  • v1.2.4

    Release v1.2.4
    
    CRITICAL Bug Fix:
    - Fixed client events to emit as 'client-event' with full payload
    - Matches Python SDK behavior
    - Events now correctly reach server
    
    Changes:
    - Client events: emit('client-event', {channel, event, data})
    - Other events: emit(event, data)
    
    This fixes the issue where client events were not reaching the server.
  • v1.2.3

    Release v1.2.3
    
    Bug Fixes:
    - Fixed send() to extract and emit only data payload
    - Socket.IO now receives correct event structure
    - Added error logging for debugging
    - Added test scripts for verification
    
    Changes:
    - emit(event, payload) instead of emit(event, {event, data})
    - Events should now reach server correctly
    
    Testing:
    - Added test-connection.php for manual testing
    - Added debug-send.php for debugging
  • v1.2.2

    Release v1.2.2
    
    Bug Fixes:
    - Fixed send() to properly emit Socket.IO events
    - Remove 'event' key from data before emitting
    - Events now correctly reach RealtimeX server
    
    All tests passing: 24/24
  • v1.2.1

    Release v1.2.1
    
    Bug Fixes:
    - Fixed process() and run() to call wait('message') with event parameter
    - Prevents blocking without event specification
    
    All tests passing: 24/24
  • v1.2.0

    Release v1.2.0
    
    New Features:
    - Socket.IO v4 protocol support
    - All 24 tests passing
    
    Improvements:
    - Better test coverage without real server
    - Protected connect() method for testability
    
    Dependencies:
    - Replaced textalk/websocket with elephantio/elephant.io v4
    
    Bug Fixes:
    - Fixed tests requiring real server connection
  • v1.1.0

    d09f591e · fix ·
    Release v1.1.0
    
    Breaking Changes:
    - Constructor no longer auto-connects (must call run() or process())
    
    New Features:
    - Non-blocking connection
    - process() method for manual message processing
    - run() method for blocking event loop
    
    Improvements:
    - SOLID compliance with MessageHandler class
    - Reduced blocking on initialization
    - Flexible event loop control
  • v1.0.0

    a226311d · initial commit ·
    Release v1.0.0 - Initial stable release
    
    Features:
    - WebSocket connection management
    - Public, private, and presence channels
    - Event binding and triggering
    - Automatic reconnection
    - PHP 8.1+ support
    - Full unit test coverage (24 tests)
    - SOLID principles
    - Complete documentation