Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 938 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 938 Bytes

Code Climate Test Coverage Dependency Status Build Status Gem Version

WebSocketHook.io Ruby Library

Usage example

require 'websockethook'

wsh = WebSocketHook.new

wsh.listen 'foo' do |message|
  puts "#{Time.now.to_s}: #{message}"
end

make call from shell

> curl http://websockethook.io/hook/foo --data "foo=bar"