Help for this page

Select Code to Download


  1. or download this
    $method = $self->{server}->getcallback("data");
    $self->$method();
    
  2. or download this
    ...setcallback(
       data => $self->can("gotdata"),
       connect => $self->can("connected"),
       disconnect => $self->can("disconnect")
    )
    
  3. or download this
    ...setcallback(
       data => sub { $obj->gotdata },
       ...