An open API service indexing awesome lists of open source software.

https://github.com/haggen/faye

Faye client in Go.
https://github.com/haggen/faye

Last synced: 3 months ago
JSON representation

Faye client in Go.

Awesome Lists containing this project

README

        

[![godoc](https://godoc.org/github.com/haggen/faye?status.svg)](https://godoc.org/github.com/haggen/faye)
[![Go Report Card](https://goreportcard.com/badge/github.com/haggen/faye)](https://goreportcard.com/report/github.com/haggen/faye)
[![CircleCI](https://circleci.com/gh/haggen/faye/tree/master.svg?style=shield)](https://circleci.com/gh/haggen/faye/tree/master)
[![codecov](https://codecov.io/gh/haggen/faye/branch/master/graph/badge.svg)](https://codecov.io/gh/haggen/faye)

# Faye

> Faye client in Go.

## Warning

This is a work in progress. Expect it to be broken, partially or otherwise.

## About

See [Faye](https://faye.jcoglan.com/).

## Example

```go
package main

import "fmt"
import "github.com/haggen/faye"

func main() {
f, err := faye.New("https://example.org/faye")
if err != nil {
panic(err)
}
channel := f.Subscribe("/channel")
for {
m := <-channel
fmt.Println(m.Data)
}
}
```

## Legal

Faye (Go) package is under The MIT License © 2017 Arthur Corenzan.

Faye protocol is under The MIT License © 2009–2017 James Coglan.