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