Comments (2)
Hi Christoph, it's poorly not possible to create a websocket connection because the webserver needs to open up a http socket and hold it until one of the participants close it. If you send a request to the plugin, the request will be send to the JavaScript runtime, after the request has been sent, the socket is already closed and therefore it's not possible to establish a websocket connection. sorry for that.
from cordova-plugin-webserver.
Ahh ok makes sense.
Thanks for your fast response.
from cordova-plugin-webserver.
Related Issues (20)
- Can't init `webserver` - Can't set a GET path.
- Could not send response to the client HOT 1
- 'GCDWebServer.h' file not found HOT 4
- [bug] Headers are not presented in case of file serving
- Feature request: From base64 to response HOT 5
- Unclear way to set up the java files to use with javascript
- Wait for response to be finished and return possible error
- 1.0.4 does not install properly HOT 1
- 'webserver' is not defined HOT 2
- Point webserver to dataDirectory? HOT 1
- "webserver" or "window.webserver" always undefined...
- Capacitor Support
- Unable to install HOT 1
- Binary Responses
- not working HOT 1
- Can you provide a license file please? HOT 2
- Website accessible from a browser, but not from fetch? HOT 1
- Build fails for ios. GCDWebServer is not configured correctly? HOT 1
- Function documentation in README not correct
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-webserver.