• This repository has been archived on 23/Apr/2022
  • Stars
    star
    367
  • Rank 112,115 (Top 3 %)
  • Language
    Go
  • License
    MIT License
  • Created over 9 years ago
  • Updated about 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An open source Pusher server implementation compatible with Pusher client libraries written in GO

Go Report Card

Try browsing the code on Sourcegraph!

IPÊ

An open source Pusher server implementation compatible with Pusher client libraries written in Go.

Why I wrote this software?

  1. I wanted to learn Go and I needed a non trivial application;
  2. I use Pusher in some projects;
  3. I really like Pusher;
  4. I was using Pusher on some projects behind a firewall;

Features

  • Public Channels;
  • Private Channels;
  • Presence Channels;
  • Web Hooks;
  • Client events;
  • Complete REST API;
  • Easy installation;
  • A single binary without dependencies;
  • Easy configuration;
  • Protocol version 7;
  • Multiple apps in the same instance;
  • Drop in replacement for pusher server;

Download pre built binaries

You can download pre built binaries from the releases tab.

Building

$ go get github.com/dimiro1/ipe

or simply

$ go install github.com/dimiro1/ipe

Building from a local checkout

$ git clone https://github.com/dimiro1/ipe.git
$ cd ipe/cmd
$ go build -o ipe

How to configure?

The server

---
host: ":8080"
profiling: false
ssl:
  enabled: false
  host: ":4343"
  key_file: "key.pem"
  cert_file: "cert.pem"
apps:
  - name: "Sample Application"
    enabled: true
    only_ssl: false
    key: "278d525bdf162c739803"
    secret: "${APP_SECRET}" # Expand env vars
    app_id: "1"
    user_events: true
    webhooks:
      enabled: true
      url: "http://127.0.0.1:5000/hook"

Libraries

Client javascript library

let pusher = new Pusher(APP_KEY, {
  wsHost: 'localhost',
  wsPort: 8080,
  wssPort: 4433,    // Required if encrypted is true
  encrypted: false, // Optional. the application must use only SSL connections
  enabledTransports: ["ws", "flash"],
  disabledTransports: ["flash"]
});

Client server libraries

Ruby

Pusher.host = 'localhost'
Pusher.port = 8080

PHP

$pusher = new Pusher(APP_KEY, APP_SECRET, APP_ID, DEBUG, "http://localhost", "8080");

Go

package main

import "github.com/pusher/pusher-http-go"

func main() {
	client := pusher.Client{
        AppId:  "APP_ID",
        Key:    "APP_KEY",
        Secret: "APP_SECRET",
        Host:   ":8080",
    }
	
	// use the client
}

NodeJS

let pusher = new Pusher({
  appId: APP_ID,
  key: APP_KEY,
  secret: APP_SECRET
  domain: 'localhost',
  port: 80
});

Logging

This software uses the glog library

for more information about logging type the following in console.

$ ipe -h

When use this software?

  • When you are offline;
  • When you want to control your infrastructure;
  • When you do not want to have external dependencies;
  • When you want extend the protocol;

Contributing.

Feel free to fork this repo.

Pusher

Pusher is an excellent service, their service is very reliable. I recommend for everyone.

Where this name came from?

Here in Brazil we have this beautiful tree called Ipê, it comes in differente colors: yellow, pink, white, purple.

I want to see pictures

Author

Claudemiro Alves Feitosa Neto

LICENSE

Copyright 2014, 2018 Claudemiro Alves Feitosa Neto. All rights reserved. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

More Repositories

1

health

An easy to use, extensible health check library for Go applications.
Go
448
star
2

banner

An easy way to add useful startup banners into your Go applications
Go
443
star
3

gopong

HTML5 Pong implementation in GO
Go
36
star
4

lambda-wkhtmltopdf

Convert HTML to PDF using wkhtmltopdf on AWS Lambda
JavaScript
18
star
5

Z80-js

A Z80 emulator implemented in Typescript/Javascript
JavaScript
17
star
6

aws-serverlerss-go

How to use standard HTTP library with the new Golang official AWS lambda runtime.
Go
8
star
7

faker

A package that generates fake data for GO
Go
7
star
8

experiments

Collection of programming experiments
Go
7
star
9

reply

Library to trim replies from plain text email. (Golang port of https://github.com/discourse/email_reply_trimmer)
Go
5
star
10

GameBoyCPP

A GameBoy Emulator written in C++
C++
4
star
11

x-example

Example for https://github.com/dimiro1/x
Go
3
star
12

mixpanel-aws-lambda

JavaScript
2
star
13

vimfiles

my vim configuration
Vim Script
2
star
14

x

X is a set of modules that make creating HTTP servers fun again
Go
2
star
15

thrift-clojure-example

Implementation of the Thrift Servlet with Clojure Ring/compojure.
Clojure
2
star
16

z80-cpu

Automatically exported from code.google.com/p/z80-cpu
Java
2
star
17

hackvm

nand2tetris HackVM implemented in Go
Go
2
star
18

sense

Extract meaning from HTML pages
Kotlin
2
star
19

go-lambda

Golang Hello World Lambda With API Gateway and Serverless
Go
2
star
20

cookbook

Golang Cookbook
1
star
21

.emacs.d

My Emacs config
Emacs Lisp
1
star
22

jschip8

Javascript Chip8 Emulator
JavaScript
1
star
23

mynes

A Work in Progress NES Emulator
Java
1
star
24

ramaze-rubinius

Ruby
1
star
25

example

Go
1
star
26

gochip8

A chip8 emulator in GO
Go
1
star
27

sameForm

Your form with the same nice look in all browsers.
JavaScript
1
star
28

graphql-api

GraphQL API implementation Golang
Go
1
star
29

bogus

Fake HTTP Server
Go
1
star
30

avaz-sample-backend-frontend-auth

Very simple application that shows how to deal with user authentication with React.
JavaScript
1
star
31

GraficoAFN

Trabalho de computação gráfica e Linguagens Formais
C++
1
star
32

gettitle

Amazon AWS Lambda compatible page get title service.
Java
1
star
33

toggle

A Go feature switch library
Go
1
star
34

todos-sample

Sample Application using gorm and database/sql
Go
1
star
35

healthz

Straightforward health package
Go
1
star
36

guia_mais_js

JavaScript
1
star