Completed
Push — master ( 556f43...aecbfe )
by Marcel
01:49
created

ConnectionsOverCapacity::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 9.9666
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace BeyondCode\LaravelWebSockets\WebSockets\Exceptions;
4
5
class ConnectionsOverCapacity extends WebSocketException
6
{
7
    public function __construct()
8
    {
9
        $this->message = 'Over capacity';
10
11
        // @See https://pusher.com/docs/pusher_protocol#error-codes
12
        // Indicates an error resulting in the connection
13
        // being closed by Pusher, and that the client may reconnect after 1s or more.
14
        $this->code = 4100;
15
    }
16
}
17