summaryrefslogtreecommitdiff
path: root/src/Client.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Client.php')
-rw-r--r--src/Client.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/Client.php b/src/Client.php
index 7f7d663..cb2fb77 100644
--- a/src/Client.php
+++ b/src/Client.php
@@ -48,6 +48,38 @@ class Client {
}
/**
+ * @param string[] $targets
+ * @return ResponseMessage
+ * @throws \Exception
+ */
+ public function pause(array $targets = []): ResponseMessage
+ {
+ $data = [];
+ if (!empty($targets))
+ $data['targets'] = $targets;
+
+ return $this->recv(
+ $this->sendRequest(new RequestMessage('pause', $data))
+ );
+ }
+
+ /**
+ * @param string[] $targets
+ * @return ResponseMessage
+ * @throws \Exception
+ */
+ public function continue(array $targets = []): ResponseMessage
+ {
+ $data = [];
+ if (!empty($targets))
+ $data['targets'] = $targets;
+
+ return $this->recv(
+ $this->sendRequest(new RequestMessage('continue', $data))
+ );
+ }
+
+ /**
* @return PongMessage
* @throws \Exception
*/