URI::ws_Punix - URI for ws+unix
my $uri=new URI($url);
# will output: ws+unix
# will output: unix/
# will output: /test/socket.sock
# some classes don't yet understand the scheme ws+unix, so here is a work around
print $uri->scheme,"\n"; # now prints "ws"
This class acts as a parser layer for URI, and adds support for handling the rare WebSocket URI using a "Unix Domain Socket. The scheme expected is "ws+unix". Since most modules don't understand this just yet, the fake scheme or $uri->set_false_scheme('ws') was added.
Returns the default port /tmp/unix.sock
Used to overload the default behavior.. sometimes you may want to say "ws" in place of "ws+unix". Some modules expect ws, this method lets you overload the default of $uri->scheme.
Normally follows the defaults unless $uri->set_false_scheme('value') was called on this instance.
Michael Shipper <AKALINUX@CPAN.ORG>
To install URI::ws_Punix, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.