bykof / cordova-plugin-webserver

A webserver plugin for cordova
Other
120 stars 51 forks source link

How to Handle Multiple request with this webserver #8

Closed Gunasekaran15 closed 6 years ago

Gunasekaran15 commented 6 years ago

how to handle multiple request with this webserver

bykof commented 6 years ago

As far as I know, multiple requests are supported o.O Do you experienced a different behaviour?

Gunasekaran15 commented 6 years ago

If you don't mind please give me a example code to handle multiple requests and responses, Because I don't know to write multiple response for different requests

bykof commented 6 years ago

Ehm.. if you don't know how to use the project, you should maybe start with easier things like node.js or python (flask)... This project is quite a basic request-response handler. I will note provide you examples, because my example above is sufficient.

Gunasekaran15 commented 6 years ago

I want to send different response to different request,How to send different response for requests.

bykof commented 6 years ago

Dude, try maybe if or switch statements? How long are you already programming? As I told you this is a pretty basic project which is doing only request-response. If you don't know how to use it, start with easier things like http://expressjs.com/ or https://flask-socketio.readthedocs.io/en/latest/. These projects does not work on mobile devices but will give you a good introduction in request-response systems.