Skip to content

Instantly share code, notes, and snippets.

@mishin
mishin / websocket3.pl
Created January 23, 2016 22:56 — forked from adam-stokes/websocket3.pl
mojo::useragent websocket
#!/usr/bin/env perl
use strict;
use warnings;
use Mojo::Base -base;
use Mojo::UserAgent;
my $ua = Mojo::UserAgent->new;
$ua->websocket(
'wss://10.0.3.1:17070' => sub {
my ($ua, $tx) = @_;