大约有 6 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0027 秒)
...ire('net');//导入net模块,因为net模块中包含一些tcp udp //创建server服务 var server = net.createServer(function (conn) { console.log('new connection is connecting') conn.write('\n hello buddy') }); server.listen(8081, function () { console.log('server is listening') // server.emit('co...
来源: Laya_社区 发布时间: 20190423
...文档,链接socket 老是链接不上,然而自己写的能链接。 server.js var express = require('express'); var app = express(); var server = require('http').createServer(app); var io = require('socket.io').listen(server); server.listen(8888); console.log("服务器启动"); io.on('connect...
来源: Laya_社区 发布时间: 20181107
...文档,链接socket 老是链接不上,然而自己写的能链接。 server.js var express = require('express'); var app = express(); var server = require('http').createServer(app); var io = require('socket.io').listen(server); server.listen(8888); console.log("服务器启动"); io.on('connect...
来源: Laya_社区 发布时间: 20180509
...Event.ERROR, this, this.onError); } public conectToServer(): void { //“连接”按钮的回调 if (this.connected) return; super.connect(IP, PORT); } //////////////////////////////////// protected _onO...
来源: Laya_社区 发布时间: 20170602
...ckage null had UID -1 java.lang.Throwable at com.android.server.pm.PackageDexOptimizer.performDexOptLI(PackageDexOptimizer.java:149) at com.android.server.pm.PackageDexOptimizer.performDexOpt(PackageDexOptimizer.java:125) at com.android.server.pm.PackageMana...
来源: Laya_社区 发布时间: 20181126
...et'); public var url:Object = require('url'); public function Main() { var server:Object = this.http.createServer(clientHandler); server.listen(8989); } private function clientHandler(req:Object,respose:Object):void { trace("收到消息"); respose.writeHead(200, {'Content-Type': 'text/plain'}); res...
来源: Laya2.0_文档 发布时间: 20210715