Pusher client for crystal language works with https://pusher.com/ or https://github.com/edgurgel/poxa.
Add this to your application's shard.yml
:
dependencies:
pusher-client:
github: vusaalab/pusher.cr
require "pusher-client"
client = Pusher::Client.new({
:app_id => "app-id",
:key => "your-pusher-key",
:secret => "your-pusher-scret",
:port => "your-port",
:encrypted => "false",
})
client.trigger(["my-channel"], "my-event", { name: "foo", title: "boo" } )
- GET channels (fetch multiple channels)
- GET channel (fetch channel)
- GET users
- Batches
- Asynchronous requests pusher.get_async pusher.post_async pusher.trigger_async
- Fork it ( https://github.com/vusaalab/pusher-client/fork )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
- vusaalab(https://github.com/vusaalab) Nilanga - creator, maintainer
- vince-kyklo(https://github.com/vince-kyklo)