This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

0.4.9

* fix client connect
  • Loading branch information...
ramitos committed Feb 17, 2013
1 parent 880a3e3 commit f6c84b04c979e497fd3b28c495d6d2ce3b5aad0c
Showing with 5 additions and 14 deletions.
  1. +1 −1 bower.json
  2. +1 −1 component.json
  3. +1 −1 package.json
  4. +2 −2 src/client/restio.js
  5. +0 −9 src/setup.js
View
@@ -1,5 +1,5 @@
{
"name": "restio",
- "version": "0.4.8",
+ "version": "0.4.9",
"main": "./dist/restio.js"
}
View
@@ -1,7 +1,7 @@
{
"name": "restio",
"license": "MIT",
- "version": "0.4.8",
+ "version": "0.4.9",
"twitter": "@ramitos",
"description": "REST-like syntax for WebSockets",
"main": "src/client/restio.js",
View
@@ -1,7 +1,7 @@
{
"name": "restio",
"license": "MIT",
- "version": "0.4.8",
+ "version": "0.4.9",
"author": "Sérgio Ramos",
"description": "REST-like syntax for WebSockets",
"main": "src/server/restio.js",
View
@@ -8,8 +8,8 @@ var requires = require('../requires'),
var eio = requires.eio;
var ev = requires.ev;
-module.exports.connect = function (addr, opts, callback) {
- var socket = setup.connect(addr, opts, callback, eio.Socket);
+module.exports.connect = function (addr, callback) {
+ var socket = new eio.Socket(addr)
var callbacks = {};
var io = new ev();
var routes = {};
View
@@ -42,15 +42,6 @@ module.exports.server = function (args) {
else return engine.attach.apply(engine, args)
};
-module.exports.connect = function (addr, opts, callback, socket) {
- if(type(opts) != 'object') {
- callback = opts
- opts = undefined
- }
-
- return new socket(addr, opts)
-};
-
/*********************************** PRIVATE **********************************/
var isNode = function () {

0 comments on commit f6c84b0

Please sign in to comment.