Help for this page
sub websockets_handler { my $self = shift; ... $self->app->log->debug("WebSocket closed with status $code."); }); }
my $cb = $self->stash('logchanvar')->on(message => sub { my ($log, $level, @lines) = @_; $self->send({ text => $lines[0] }); ...