Comments (6)
const PORT = 8081
var http = require('http');
http.createServer(function (request, response) {
response.writeHead(200, {'Content-Type': 'text/plain'});
response.end('Hello World\n');
}).listen(PORT);
console.log(`Server running at http://127.0.0.1:${PORT}/`);
from puerts.
const PORT = 8081 var http = require('http'); http.createServer(function (request, response) { response.writeHead(200, {'Content-Type': 'text/plain'}); response.end('Hello World\n'); }).listen(PORT); console.log(`Server running at http://127.0.0.1:${PORT}/`);
您好,感谢回复,我想知道这段代码和我原本的有什么本质区别嘛?我现在运行下来还是一样的问题,创建的server还是无法访问:
from puerts.
如果是unity,你应该要在update那调用JsEnv.Tick
from puerts.
如果是unity,你应该要在update那调用JsEnv.Tick
十分感谢!这对我很有用!我会去仔细研究这个函数的含义,感谢您的解答!
from puerts.
@chexiongsheng 我很遗憾的是,虽然nodejs在editor中好使了,但在我打包出的unity apk运行在手机上时,他依旧无法成功创建服务,我很确定我下载的puerts是最新的且backend为nodejs:
因为editor下好使但移动端不好使,所以我只能猜测是我的node相关lib有问题,我发现下载下来的lib中很多这样的meta文件
这和我在backend-nodejs项目中看到的类似,我猜测可能是这些.a都被一同打包进了libpuerts.so,所以不再需要了?我简单的使用您backend-nodejs项目中的armv8产物替换这里的lib发现编译不过,我很想知道这里面是哪一块出了问题?
from puerts.
editor可以,手机上应该就没问题。你看是不是场景没启动,脚本没启动,防火墙之类的问题。
from puerts.
Related Issues (20)
- [Unity]TS端向CS端注册带参(非string)回调报错 HOT 1
- [Unity]quickjs后端js throw null会导致崩溃
- [Unity] 如何安装? HOT 4
- [Unity]quickjs版本支持throw undefined HOT 1
- [UE] Bug: UE5安卓打包中出现libnode.so缺失及SSL库的问题 HOT 7
- [Unity] Bug: $Ref<T>类型中多了value字段声明
- [Unity] Cannot find module HOT 3
- Godot C# GD class convert HOT 1
- [Unity]/[UE] suggestion Unity打包到小游戏过程中,怎么处理能改动到library.js脚本 HOT 1
- [UE] Bug: 使用继承引擎类的方式,ReceiveBeginPlay 获取不到初始化jsenv的数据。 HOT 6
- Dictionary foreach HOT 5
- [UE] 模块加载梳理
- [UE] Bug: MIxin的类被原生蓝图继承类调用的问题 HOT 10
- [UE] suggestion 求问使用c++提供接口给ts,编译的时候v8报错。 HOT 5
- [UE] question 在ue5.4中,使用了异步加载出现数据获取不到。 HOT 1
- [UE] Bug: 解决bEnableUndefinedIdentifierWarnings的问题 HOT 3
- [UE] Bug: 插件的蓝图类不生成type HOT 5
- [Unity] WebGL 平台中 JSEnv.Tick 开销过大
- [UE] question unreal ts中的class方法注册到ue中actor的委托,回调丢失ts的实例 HOT 2
- [Unity] Bug: puerts webgl 怎么实现 js 脚本的热更? HOT 5
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 puerts.