You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varhttp=require('http');varfs=require('fs');varserver=http.createServer();varEureca=require('eureca.io');vareurecaServer=newEureca.Server();eurecaServer.attach(server);//functions under "exports" namespace will//be exposed to client sideeurecaServer.exports.hello=function(){console.log('Hello from client');}server.on('request',function(request,response){vari;if(request.method==='GET'){if(request.url.split('?')[0]==='/'){varfilename=__dirname+'/index.html';fs.readFile(filename,function(err,data){vartext=data.toString();response.writeHead(200,{'Content-Type': 'text/html'});response.write(text);response.end();});}}});console.log('\033[96mlistening on localhost:8000 \033[39m');server.listen(8000);
server out:
eureca.io v0.8.1
listening on localhost:8000
Hello from client
hi @alaa-eddine
I am trying 001-http-server examples, 'connectionRetry' was not trigger.
client code
server code:
server out:
client out:
then I shutdown server. there is no connectionRetry event trigger.
The text was updated successfully, but these errors were encountered: