line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::WebSocket::X::UnsupportedProtocolVersion; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
1086
|
use strict; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
69
|
|
4
|
2
|
|
|
2
|
|
11
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
55
|
|
5
|
|
|
|
|
|
|
|
6
|
2
|
|
|
2
|
|
10
|
use parent qw( Net::WebSocket::X::Base ); |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
10
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
sub _new { |
9
|
2
|
|
|
2
|
|
413
|
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
|
|
|
|
|
13
|
return $class->SUPER::_new( |
16
|
|
|
|
|
|
|
$str, |
17
|
|
|
|
|
|
|
version => $version, |
18
|
|
|
|
|
|
|
); |
19
|
|
|
|
|
|
|
} |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
1; |