Skip to content

Instantly share code, notes, and snippets.

@vti
Created October 13, 2010 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vti/2610d1e8935eb52493b3 to your computer and use it in GitHub Desktop.
Save vti/2610d1e8935eb52493b3 to your computer and use it in GitHub Desktop.
my $url = $self->req->url->base->clone;
$url->scheme($self->req->is_secure ? 'wss' : 'ws');
$url->query->params([]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment