Skip to content

Instantly share code, notes, and snippets.

View spunkedy's full-sized avatar

Ed Bond spunkedy

View GitHub Profile
import longPoll from './lib/longPoll';
longPoll("http://example.com/livereload", (err,res) => {
if(err){
console.log("error");
console.log(err);
} else {
console.log("reloading");
console.log(res);
}
});
import {Socket,LongPoll} from "./socket.js"
let socket = new Socket("/socket", { location: "localhost:4000", transport: LongPoll, params: {token: "asdf"}})
socket.connect()
socket.onClose( e => console.log("Closed connection") )
var channel = socket.channel("atv:lobby", {})
channel.join()
.receive("ok", resp => { console.log("Joined successfully", resp) })
.receive( "error", () => console.log("Connection error") )

Teller Bank Challenge

Mix.install([:tesla, :jason, :kino])