From 478bdc10c52023dfddfb30c2512a047a731a072f Mon Sep 17 00:00:00 2001 From: Gerrit Drost Date: Fri, 23 May 2014 16:31:08 +0200 Subject: [PATCH] Added a method to expose the flashsocket --- src/Ratchet/App.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Ratchet/App.php b/src/Ratchet/App.php index 03bf1bb..e59c074 100644 --- a/src/Ratchet/App.php +++ b/src/Ratchet/App.php @@ -91,13 +91,22 @@ class App { } /** - * Returns the FlashPolicy running in the FlashServer. Modifications of this object take effect immediately! + * Returns the FlashPolicy running in the flash server. Modifications of this object take effect immediately! * * @return FlashPolicy */ public function getFlashPolicy() { return $this->flashServer->getApp(); } + + /** + * Returns the FlashSocket of the flash server. + * + * @return \React\Socket\ServerInterface + */ + public function getFlashSocket() { + return $this->flashServer->getSocket(); + } /** * Add an endpiont/application to the server