vince94320 / pusher-client

Pusher Client for Crystal Language

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pusher-client

Pusher client for cystal language

Installation

Add this to your application's shard.yml:

dependencies:
  pusher-client:
    github: vusaalab/pusher-client

Usage

require "pusher-client"


client = Pusher::Client.new({
    :app_id    => "app-id",
    :key       => "your-pusher-key",
    :secret    => "your-pusher-scret",
    :cluster   => "your-cluster",
    :port      => "your-port",
    :encrypted => "false",
})

client.trigger(["my-channel"], "my-event", { name: "foo", title: "boo" } )

Development TODO:

  1. GET channels (fetch info for multiple channels)
  2. GET channel (fetch info for one channel)
  3. GET users

Contributing

  1. Fork it ( https://github.com/vusaalab/pusher-client/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors

About

Pusher Client for Crystal Language

License:MIT License


Languages

Language:Crystal 100.0%