WEB SERVER: What is the meaning behind app.CreateWebServer?

45 views
Skip to first unread message

Dummy Account

unread,
Jan 30, 2019, 4:52:27 AM1/30/19
to DroidScript
I know it can't simply be one line of code to run a web server? And what kind of web server does it use?

Steve Garman

unread,
Jan 30, 2019, 5:09:25 AM1/30/19
to DroidScript
It uses the Jetty Web Server.

If you want to see how few lines of code are required to run a server on your phone/tablet, take a look at the sample that comes with DroidScript
HTTP_Server
Run a web server on your device

If you use the Wi-fi IDE from a Chromebook or PC to write code on your phone, that is served by app.CreateWebServer()

Dummy Account

unread,
Jan 30, 2019, 5:26:32 AM1/30/19
to DroidScript
Thank you! Follow up, does Jetty Web Server come built-in with Droidscript? Since I can't find any specific code that hints that I am using Jetty. :) 

Steve Garman

unread,
Jan 30, 2019, 5:45:16 AM1/30/19
to DroidScript
Yes, Jetty comes built in.

The only reference to it I can think of is in DroidScript's About box, unde Licenses

Dummy Account

unread,
Jan 30, 2019, 10:21:21 AM1/30/19
to DroidScript
By any chance do you know the codes necessary to run jetty in a non-Droidscript javascript instance?

Steve Garman

unread,
Jan 30, 2019, 11:17:05 AM1/30/19
to DroidScript
DroidScript uses java to run it.

As far as I know that's what it wants but I'm not an expert on Jetty.

Reply all
Reply to author
Forward
0 new messages