"be consistent" | |
PerlMonks |
Re: WebSocket Server Not Respondingby Riales (Hermit) |
on May 28, 2013 at 17:31 UTC ( [id://1035662]=note: print w/replies, xml ) | Need Help?? |
For the curious, the problem turned out to be scoping issue. $handle would go out of scope once the server initialized. The fix turned out to just be declaring my $handle; before actually creating it in the on-connect callback for tcp_server.
In Section
Seekers of Perl Wisdom
|
|