diff --git a/lib/AppInstance.class.php b/lib/AppInstance.class.php
index <HASH>..<HASH> 100644
--- a/lib/AppInstance.class.php
+++ b/lib/AppInstance.class.php
@@ -146,4 +146,3 @@ class AppInstance
   return $r;
  }
 }
-class FastCGI_AppInstance extends AppInstance {}
diff --git a/lib/WebSocketRoute.class.php b/lib/WebSocketRoute.class.php
index <HASH>..<HASH> 100644
--- a/lib/WebSocketRoute.class.php
+++ b/lib/WebSocketRoute.class.php
@@ -10,14 +10,16 @@
 class WebSocketRoute
 {
  public $client; // Remote client
+ public $appInstance;
  /* @method __construct
     @description Called when client connected.
     @param object Remote client (WebSocketSession).
     @return void
  */
- public function __construct($client)
+ public function __construct($client,$appInstance = NULL)
  {
   $this->client = $client;
+  if ($appInstance) {$this->appInstance = $appInstance;}
  }
  /* @method onHandshake
     @description Called when the connection is handshaked.
Removed unused class FastCGI_AppInstance. Minor improvements in WebSocketRoute.class.php