Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 635 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 635 Bytes

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)