Browse Source

derp

master
mortie 8 years ago
parent
commit
19dffbf811
2 changed files with 4 additions and 4 deletions
  1. 3
    3
      client.js
  2. 1
    1
      package.json

+ 3
- 3
client.js View File

@@ -43,7 +43,7 @@
function init() {
console.log("init...");
post("/webevents/register", function(err, res) {
console.log("Init done", err ? "with errors" : "no errors");
console.log("Init done,", err ? "with errors" : "no errors");

// Retry on error
if (err) {
@@ -52,7 +52,7 @@
return;
}

self.emit("connection");
emit("connection");
key = res.key;
await();
});
@@ -61,7 +61,7 @@
function await() {
console.log("await...");
post("/webevents/await/"+key, function(err, res) {
console.log("Await done", err ? "with errors" : "no errors");
console.log("Await done,", err ? "with errors" : "no errors");

// Retry on error
if (err === "ENOTREGISTERED") {

+ 1
- 1
package.json View File

@@ -1,6 +1,6 @@
{
"name": "webevents",
"version": "1.1.0",
"version": "1.1.1",
"description": "A simple library for sending events from the server to the client.",
"main": "index.js",
"scripts": {

Loading…
Cancel
Save