From: Eric Zhang <e...@nowjs.com>
Date: Wed, 7 Sep 2011 10:43:45 -0700
Local: Wed, Sep 7 2011 1:43 pm
Subject: Re: [NowJS] Re: to communicate between 2 pages using nowjs
You don't need seperate servers to serve multiple html files. Instead you Consider using `express` http://expressjs.com/ as it abstracts away all of Eric On Wed, Sep 7, 2011 at 10:37 AM, maxi <mcoll...@gmail.com> wrote:
> Hi Eric, > i tried with this : > var fs = require('fs'); > var server1= require('http').createServer(function(req, response){ > server.listen(8090); > but I received an error : > EADDRINUSE, Address already in use > Maxi > On 7 Set, 09:36, Eric Zhang <e...@nowjs.com> wrote: > > You simply have to serve the other HTML page any way you choose. As long > > Eric > > On Sun, Sep 4, 2011 at 2:21 PM, maxi <mcoll...@gmail.com> wrote: > > > Example: > > > var html = require('fs').readFileSync(__dirname+'/helloworld.html'); > > > server.listen(8080); > > > I'd like to open another connection with new page 'helloworld1.html' > > > is it possible ? > > > thanks again > > > Maxi You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||