javascript - Node.js not connecting with mobile browsers -


i've been working on small radio player uses node.js create websocket pushes through updates song , artist when xml file updated , work great on desktop browsers.however when tried testing on ipad , windows phone, node.js doesn't connect or acknowledge trying connect. what's causing , how fix it? please , thank you

server.js

app.listen(8080); function handler(req, res) {  fs.readfile(__dirname + '/wp-content/themes/c/page-player.php', function(err, data) {    if (err) {      console.log(err);      res.writehead(500);      return res.end('error loading index.php');    }    console.log("connection!");    res.writehead(200);    res.end(data);   }); } 

client.js

$(document).ready(function(){ var localurl = 'http://***.**.**.**:8080'; var socket = io.connect(localurl);// creating new websocket 

edit: forgot metion: else on page loads, websockets aren't connecting.


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -