| 1 | <?php |
||
| 7 | class WebSocketException extends Exception |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Get the payload, Pusher-like formatted. |
||
| 11 | * |
||
| 12 | * @return array |
||
| 13 | */ |
||
| 14 | public function getPayload() |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Trigger the exception message. |
||
| 27 | * |
||
| 28 | * @param string $message |
||
| 29 | * @param int $code |
||
| 30 | * @return void |
||
| 31 | */ |
||
| 32 | public function trigger(string $message, int $code = 4001) |
||
| 37 | } |
||
| 38 |