Skip to content

Commit 837b425

Browse files
authored
Added Hyperf\WebSocketServer\Constant\Opcode. (#4697)
1 parent 56ca509 commit 837b425

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

src/Constant/Opcode.php

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
/**
5+
* This file is part of Hyperf.
6+
*
7+
* @link https://www.hyperf.io
8+
* @document https://hyperf.wiki
9+
* @contact group@hyperf.io
10+
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
11+
*/
12+
namespace Hyperf\WebSocketServer\Constant;
13+
14+
class Opcode
15+
{
16+
public const CONTINUATION = 0x0;
17+
18+
public const TEXT = 0x1;
19+
20+
public const BINARY = 0x2;
21+
22+
public const CLOSE = 0x8;
23+
24+
public const PING = 0x9;
25+
26+
public const PONG = 0xA;
27+
}

0 commit comments

Comments
 (0)