Go
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.travis.yml
LICENSE
README.md
channel.go
connection.go
message.go
state.go

README.md

Pusher Build Status

Package pusher implements client library for pusher.com

Usage

package main

import (
	"github.com/oguzbilgic/pusher"
)

func main() {
	conn, err := pusher.New("d05049c57n3ielfhfh82")
	if err != nil {
		panic(err)
	}

	chatRoomChan := conn.Channel("chat_room")
	messages := chatRoomChan.Bind("new_message")

	for {
		msg := <-messages

		println(msg.(string))
	}
}

Documentation

http://godoc.org/github.com/oguzbilgic/pusher

License

The MIT License (MIT)