Skip to content

Commit 18c22d5

Browse files
committed
Simplify PUBACK flags override
1 parent 5ad0c33 commit 18c22d5

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

src/Common/PublishAckPacket.php

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,13 @@
11
<?php
22

3-
/*
4-
* This file is part of net-mqtt.
5-
*
6-
* Copyright (c) 2015 Sebastian Mößler [email protected]
7-
*
8-
* This source file is subject to the MIT license.
9-
*/
10-
113
namespace Fbns\Client\Common;
124

13-
use BinSoul\Net\Mqtt\Packet\BasePacket;
145
use BinSoul\Net\Mqtt\Packet\PublishAckPacket as BasePublishAckPacket;
15-
use BinSoul\Net\Mqtt\PacketStream;
166

17-
/**
18-
* Represents the PUBACK packet.
19-
*/
207
class PublishAckPacket extends BasePublishAckPacket
218
{
22-
public function read(PacketStream $stream): void
9+
protected function assertPacketFlags(int $value): void
2310
{
24-
BasePacket::read($stream);
25-
//$this->assertPacketFlags($this->getExpectedPacketFlags());
26-
$this->assertRemainingPacketLength(2);
27-
28-
$this->identifier = $stream->readWord();
11+
// Do nothing because of non-standard flags being used.
2912
}
3013
}

0 commit comments

Comments
 (0)