Requires mongod.
go get github.com/elos/server
cd github.com/elos/server
go run server.go
ginkgo -r
POST /v1/users
connection = new WebSocket("ws://localhost:8000/v1/authenticate", "[id]-[key]")
connection.onmessage = function(event) { console.log(JSON.parse(event.data)); }
msg = {
action: "POST"
data: {
event: {
name: "This is a new event"
}
}
}
connection.send(JSON.stringify(msg))
DONT USE PACKAGES AS INTERFACES! INJECT DEPENDENCIES!