I have a socket object
var express = require('express');
var util = require('util');
var app = express();
var server = require('http').createServer(app);
var io = require("socket.io").listen(server);
Loading index.html
app.get("/", function(req, res){
res.sendFile(__dirname+ "/index.html");
})
For viewing what actual io Object contains, I am using util
var io_ObjectDetails = util.inspect(io, {showHidden: false, depth: null});
The question is How can I pass io_ObjectDetails to index.html using GET or POST method and show it in HTML tags
Aucun commentaire:
Enregistrer un commentaire