Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
chazzbg committed Oct 16, 2024
1 parent 6e4f2c2 commit 25ea950
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Connection.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Connection
private float $pingAt = 0;
private float $pongAt = 0;
private float $prolongateTill = 0;
private int $paketSize = 1024;
private int $packetSize = 1024;

private ?Authenticator $authenticator;
private Configuration $config;
Expand Down Expand Up @@ -135,7 +135,7 @@ public function sendMessage(Message $message)

while ($total < $length) {
try {
$written = @fwrite($this->socket, substr($line, $total, $this->paketSize));
$written = @fwrite($this->socket, substr($line, $total, $this->packetSize));
if ($written === false) {
throw new LogicException('Error sending data');
}
Expand Down Expand Up @@ -298,7 +298,7 @@ private function processException(Throwable $e)

public function setPacketSize(int $size): void
{
$this->paketSize = $size;
$this->packetSize = $size;
}

public function close(): void
Expand Down

0 comments on commit 25ea950

Please sign in to comment.