Skip to content

Commit c4cdf01

Browse files
committed
Properly close websocket connection
1 parent da0127e commit c4cdf01

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Commands/SendRconCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ public function handle()
5353
]);
5454
$client->send($data);
5555
$result = json_decode($client->receive());
56-
echo $result->Message;
56+
echo $result->Message;
57+
$client->close();
5758
}
5859
}

0 commit comments

Comments
 (0)