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