Comments (5)
The error is correct, your server does not send a valid HTTP response.
from txiki.js.
That is the example TCP server in this repository. Is that example TCP server not expected to send a valid HTTP response? Do any of the example servers send a valid HTTP response? Where can we set headers?
from txiki.js.
It's a TCP server, not an HTTP server. I'm not sure I could have used a clearer name.
If you want to create an HTTP server then you'll need to build one yourself, I don't have one built already, sorry.
from txiki.js.
It's a TCP server, not an HTTP server. I'm not sure I could have used a clearer name.
This WICG/direct-sockets#46 might work to connect to the TCP server from the browser. There are some specific steps that must be taken to do that WICG/direct-sockets#46 (comment).
Does txiki.js currently support creating a WebSocket server?
from txiki.js.
Not currently , just WebSocket client is supported.
from txiki.js.
Related Issues (20)
- v23.1.0 has unpredictable segfaults when running invalid JS files HOT 3
- Can not build in MAC HOT 4
- Support Uint32Array, other TypedArray's and ArrayBuffer parameter for stdin.read() (StdioInputStream)) HOT 8
- Add timeout for http imports
- Build problems on macOS 11.2.3 HOT 5
- Could this be used on an e.g. Pico Pi? HOT 2
- support indexedDB implement HOT 7
- [Question] Making JS Files a Built-in module HOT 6
- FFI does not support complex structures
- @types packet for txikijs HOT 3
- osx clang use -O3 parseFloat('Infinity') == 3 HOT 2
- Readline module
- tjs do not show any error message when import failed HOT 2
- .js extension and `run` cmd required HOT 5
- Support the Minimum Common Web Platform API HOT 7
- Failed to build on macOS 14 HOT 5
- This is weak HOT 5
- Implement the FileReader API HOT 1
- await behave is not as expected HOT 4
- console.time(End) HOT 3
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 txiki.js.