Skip to content

Commit 7d4f2bb

Browse files
Add isConnected() method for determinate the client status.
1 parent 8149ea3 commit 7d4f2bb

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Wamp/Client.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function __construct($host, $port, $secured = false, $origin = null)
7373
'%s://%s:%s',
7474
$protocol,
7575
$host,
76-
$port
76+
$portbo
7777
);
7878
}
7979

@@ -365,4 +365,12 @@ protected function generateKey($length = 16)
365365

366366
return base64_encode(substr($tmp, 0, $length));
367367
}
368+
369+
/**
370+
* @return bool
371+
*/
372+
public function isConnected()
373+
{
374+
return $this->connected;
375+
}
368376
}

0 commit comments

Comments
 (0)