Node.js server port issue

#1

When I open node.js server by using express, the server isn’t stop and still occupy port… Is this just a bug? Or is there some way to stop service?

1 Like

#2

Hi nate :wave:

play.js 1.1.1 has been submitted for review fixing this issue.

Have a nice day!

1 Like

#3

Does that mean I can now start a web server on iPad

0 Likes

#4

Is this forum alive ? Barely activity and no responses

0 Likes

#5

Hi Soydepr :wave:

Sure you can, here you have an example:

In an upcoming release the process of adding dependencies will be smoother :slight_smile:

0 Likes

#6

No browser open after running this ‘

const http = require(‘http’)

//console.log(‘here’)

function onRequest(request,response) {

console.log(‘here’)

response.writeHead(200, {‘content-type’: ‘text/plain’})

response.write(‘complete’)

console.log(‘here’)

response.end()

}

http.createServer(onRequest).listen(8080)

//console.log(‘here’)

0 Likes

#7

Hi Soydepr :wave:

If you have an iPad compatible with split screen you can have Safari and play.js side by side and code while you browse your app.

0 Likes

#8

I’m saying browser not displaying when I run code

0 Likes

#9

Now in Safari you should navigate to http://localhost:8080

If that doesn’t work try with a different port. :slightly_smiling_face:

1 Like

#10

Different por5 work thanks

0 Likes