Try browsing the code on Sourcegraph!
An open source Pusher server implementation compatible with Pusher client libraries written in Go.
- I wanted to learn Go and I needed a non trivial application;
- I use Pusher in some projects;
- I really like Pusher;
- I was using Pusher on some projects behind a firewall;
- 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;
You can download pre built binaries from the releases tab.
$ go get github.com/dimiro1/ipeor simply
$ go install github.com/dimiro1/ipeBuilding from a local checkout
$ git clone https://github.com/dimiro1/ipe.git $ cd ipe/cmd $ go build -o ipe--- host: ":8080"profiling: falsessl: enabled: falsehost: ":4343"key_file: "key.pem"cert_file: "cert.pem"apps: - name: "Sample Application"enabled: trueonly_ssl: falsekey: "278d525bdf162c739803"secret: "${APP_SECRET}"# Expand env varsapp_id: "1"user_events: truewebhooks: enabled: trueurl: "http://127.0.0.1:5000/hook"letpusher=newPusher(APP_KEY,{wsHost: 'localhost',wsPort: 8080,wssPort: 4433,// Required if encrypted is trueencrypted: false,// Optional. the application must use only SSL connectionsenabledTransports: ["ws","flash"],disabledTransports: ["flash"]});Ruby
Pusher.host='localhost'Pusher.port=8080PHP
$pusher = newPusher(APP_KEY, APP_SECRET, APP_ID, DEBUG, "http://localhost", "8080");Go
package main import"github.com/pusher/pusher-http-go"funcmain(){client:= pusher.Client{AppId: "APP_ID", Key: "APP_KEY", Secret: "APP_SECRET", Host: ":8080", } // use the client }NodeJS
letpusher=newPusher({appId: APP_ID,key: APP_KEY,secret: APP_SECRETdomain: 'localhost',port: 80});This software uses the glog library
for more information about logging type the following in console.
$ ipe -h- 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;
Feel free to fork this repo.
Pusher is an excellent service, their service is very reliable. I recommend for everyone.
Here in Brazil we have this beautiful tree called Ipê, it comes in differente colors: yellow, pink, white, purple.
Claudemiro Alves Feitosa Neto
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.