Sample code for 30+ languages & platforms
Perl

WebSocket Examples for Chilkat2 Perl