line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::WebSocket::X::UnsupportedProtocolVersion; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
1029
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
61
|
|
4
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
67
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
12
|
use parent qw( Net::WebSocket::X::Base ); |
|
2
|
|
|
|
|
12
|
|
|
2
|
|
|
|
|
11
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub _new { |
9
|
2
|
|
|
2
|
|
432
|
my ($class, $version) = @_; |
10
|
|
|
|
|
|
|
|
11
|
2
|
|
|
|
|
6
|
my $str = "Received invalid WebSocket version in handshake: $version"; |
12
|
|
|
|
|
|
|
|
13
|
2
|
|
|
|
|
6
|
$str .= " - must be " . Net::WebSocket::Constants::PROTOCOL_VERSION(); |
14
|
|
|
|
|
|
|
|
15
|
2
|
|
|
|
|
10
|
return $class->SUPER::_new( |
16
|
|
|
|
|
|
|
$str, |
17
|
|
|
|
|
|
|
version => $version, |
18
|
|
|
|
|
|
|
); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |