Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/Ratchet/AbstractConnectionDecorator.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php
namespace Ratchet;

use Ratchet\WebSocket\WebSocket;

/**
* Wraps ConnectionInterface objects via the decorator pattern but allows
* parameters to bubble through with magic methods
Expand All @@ -11,9 +13,11 @@ abstract class AbstractConnectionDecorator implements ConnectionInterface {
* @var ConnectionInterface
*/
protected $wrappedConn;
public WebSocket $WebSocket;

public function __construct(ConnectionInterface $conn) {
$this->wrappedConn = $conn;
$this->WebSocket = new WebSocket();
}

/**
Expand Down
10 changes: 10 additions & 0 deletions src/Ratchet/Server/IoConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ class IoConnection implements ConnectionInterface {
*/
protected $conn;

public $resourceId;
public $remoteAddress;
public $httpHeadersReceived;
public $httpBuffer;
public $Session;
public $httpRequest;
public $WebSocket;
public $PeriodicTimer;
public $WAMP;


/**
* @param \React\Socket\ConnectionInterface $conn
Expand Down
8 changes: 8 additions & 0 deletions src/Ratchet/WebSocket/WebSocket.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace Ratchet\WebSocket;

class WebSocket extends \stdClass {

public $closing;
}