Sunday, 15 April 2012

javascript - How to develop peer-to-peer chat application in browser -



javascript - How to develop peer-to-peer chat application in browser -

i wish develop peer peer chat application(in javascript) in browser uses developed javascript code interaction server. have implemented web sockets facing problem developing chat app on in browser.

thanks in advance.

i want give thought of simplest communication between computers can think of using javascript, give thoughts started. understanding want utilize javascript here go:

if utilize node.js code:

var sys = require("sys"), my_http = require("http"); my_http.createserver(function(request,response){ sys.puts("i got kicked"); response.writeheader(200, {"content-type": "text/plain"}); response.write("hello world"); response.end(); }).listen(8080); sys.puts("server running on 8080");

this makes server listening port, , can have send , receive on port. set on 2 pc's , have communications between them on port of choice.

put window type text , set send button, , on way. stick incoming in array, show in text window... in 3 hours can have , running...

this started on thinking this... not solution how should create per per chat application

javascript chat p2p

No comments:

Post a Comment