factor-io / websockethook-ruby

A Ruby library for Web.SocketHook.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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"

About

A Ruby library for Web.SocketHook.io

License:MIT License


Languages

Language:Ruby 100.0%