From 1c4f5d4c5b4e41fb78b785d802af868c3011a627 Mon Sep 17 00:00:00 2001 From: Ezequiel Mross Date: Thu, 19 Feb 2015 11:04:13 -0200 Subject: [PATCH] improve SocketProxy --- src/windows8/SocketProxy.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/windows8/SocketProxy.js b/src/windows8/SocketProxy.js index fce8c97..a92ff5e 100644 --- a/src/windows8/SocketProxy.js +++ b/src/windows8/SocketProxy.js @@ -2,6 +2,7 @@ 'use strict'; var Connection = require('com.tlantic.plugins.socket.Connection'); + var Socket = require('com.tlantic.plugins.socket.Socket'); // connection pool exports.pool = []; @@ -174,7 +175,7 @@ var key = exports.buildKey(host, port); - window.tlantic.plugins.socket.receive(host, port, key, data); + Socket.receive(host, port, key, data); }; require('cordova/windows8/commandProxy').add('Socket', exports); \ No newline at end of file