pusher

package module
v0.0.0-...-08ba5e9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2016 License: MIT Imports: 7 Imported by: 0

README

go-pusher

A golang Pusher client ()

Installation

$  go get github.com/toorop/go-pusher

Usage

See client.go in examples folder

Todo

  • Pusher Server

Donate

Donation QR

1HgpsmxV52eAjDcoNpVGpYEhGfgN7mM1JB

Documentation

Index

Constants

View Source
const (
	ME                      = "Go-Pusher"
	VERSION                 = "0.1"
	PROTOCOL_VERSION        = "7"
	EVENT_CHANNEL_BUFF_SIZE = 1000 // events channel buffer size
	HEARTBEAT_RATE          = 30   // time in second between 2 beats
)

Variables

This section is empty.

Functions

func NewClient

func NewClient(appKey string) (*client, error)

NewClient initialize & return a Pusher client

func NewCustomClient

func NewCustomClient(appKey, host, scheme string) (*client, error)

Types

type Event

type Event struct {
	Event string `json:"event"`
	Data  string `json:"data"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL