# websocker **Repository Path**: rubygems/websocker ## Basic Information - **Project Name**: websocker - **Description**: No description available - **Primary Language**: Ruby - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2016-10-21 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README = websocker simple (incomplete) websocket client implemtation... sample usage: ws = Websocker::Client.new(:host => "localhost", :port => 8887) ws.connect # listen for messages from the server ws.on_message do |msg| puts "Received: #{msg}" # send a message ws.send("This is message ##{msgid}") end ws.on_closed do puts "Closed!" end # start listening thrd = ws.listen # wait until the connection is closed thrd.join