hello everyone i have made a chat app using socket.io express.  iam able to 
send private message to selcted user but i want to open a private chat in 
seprate iframe which will be the seprate socket from the existing running 
socket any idea how to do that, 
i am trying like this 
  socket.on('getContent', function (data) {*// main socket*
        console.log("Data is 
------------------------------------------------------------------------------ 
"+data);
        io.sockets.on('innerConn', function (socket,request) {*// open new 
socket for private chat *

        socket.on('getMessage', function (data) { {*// not executing*
            console.log("Data is 
------------------------------------------------------------------------------ 
innn "+data);
                socket.emit('getMessage',data);
            });

        } );

    });

*client side *
its not coming here 
 var socket = io.connect('http://localhost:8080/pvtChatWindow');
        socket.on('getContent', function(chatUser){
            alert(chatUser);
            console.log(socket+" ------------------------->     
---------------------->>.");
            socket.emit('getContent');

        });


Thanks in advance 

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to