Real-time application on sockets with server on Sails.js

Hi there,
 
I have my Corona application which connects to a server through sockets
 
[lua]
local socket = require(“socket”);
local connect, error = socket.connect(‘127.0.0.1’, 1337);
 
if (connect == nil) then
    print('Connection error: ’ … error);
    return false;
end
 
print(‘Connected’);
[/lua]
 
My server on Node.js
 
var net = require(‘net’),
    server = net.createServer()
;

server.on(‘connection’, function(socket) {
    console.log('New client: ’ + socket.remoteAddress + ‘:’ + socket.remotePort);
});

server.listen(1337);
 
When I run the application on the server console prompt appears New client: 127.0.0.1:PORT.
Now I’m trying to connect to my server on Sails.js but nothing happens. When I go to 127.0.0.1:1337 by browser server returned info: handshake authorized SOCKET_ID, but when I try to connect by the app nothing’s happen.
Somebody was trying to solve a similar problem?