Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'goliath'
- class InstanceEvents < Goliath::API
- def on_close(env)
- p 'hi from instance events'
- end
- def response(env)
- [200,{},'']
- end
- end
- class Web < Goliath::API
- map "/instance-events", InstanceEvents
- end
Add Comment
Please, Sign In to add comment