| 1 | package Thunderhorse::WebSocket; | ||||||||||
| 2 | 24 | $Thunderhorse::WebSocket::VERSION = '0.107'; | |||||||||
| 3 | 24 | ▶ | use v5.40; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 24 | ▶ | use Mooish::Base -standard; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 24 | ▶ | use Future::AsyncAwait; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 24 | ▶ | use Gears::X::Thunderhorse; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 24 | extends 'PAGI::WebSocket'; | |||||||||
| 10 | 24 | with 'Thunderhorse::Message'; | |||||||||
| 11 | |||||||||||
| 12 | 3 | ▶ | sub FOREIGNBUILDARGS ($class, %args) | ||||||||
|
Subroutine
FOREIGNBUILDARGS: called CC=2 SCAR=7.2
Pod
undocumented
| |||||||||||
| 13 | { | ||||||||||
| 14 | Gears::X::Thunderhorse->raise('no context for websocket') | ||||||||||
| 15 | 3 | ▶ | unless $args{context}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 16 | |||||||||||
| 17 | 3 | return $args{context}->pagi->@*; | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 0 | ▶ | sub update ($self, $scope, $receive, $send) | ||||||||
|
Subroutine
update: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 21 | { | ||||||||||
| 22 | 0 | $self->{scope} = $scope; | |||||||||
| 23 | 0 | $self->{receive} = $receive; | |||||||||
| 24 | 0 | $self->{send} = $send; | |||||||||
| 25 | } | ||||||||||
| 26 | |||||||||||
| 27 | __END__ | ||||||||||