小编Mur*_*ian的帖子

适用于Android的WebRTC Native API

我想使用WebRTC(非浏览器)开发Android Native视频聊天应用程序.主要功能是Android用户可以调用桌面Web浏览器.有什么办法吗?(请不要使用第三方API)

android webrtc

9
推荐指数
1
解决办法
2万
查看次数

套接字挂起错误Http-Proxy NodeJS

当用户单击"注销"按钮时,我的服务器控制台中出现以下错误.

Error: socket hang up
    at createHangUpError (http.js:1472:15)
    at Socket.socketCloseListener (http.js:1522:23)
    at Socket.EventEmitter.emit (events.js:95:17)
    at TCP.close (net.js:466:12)
Run Code Online (Sandbox Code Playgroud)

这是我的proxy_server:

var fs=require('fs');
var options = {
    key: fs.readFileSync('key/xxxxxxxxx.pem'),
    cert: fs.readFileSync('key/xxxxx.pem'),
    ca: fs.readFileSync('key/gd_bundle-g2-g1.crt')
};

var express=require('express'),
    https=require('https'),
    httpProxy = require('http-proxy'),
    http=require('http'),
    app=express(),
    app1=express(),
    server=https.createServer(options,app),
    serverhttp=http.createServer(app1);

var proxy = httpProxy.createProxy({ target: 'http://localhost:9898',secureOptions:'constants.SSL_OP_NO_TLSv1_2'});
var proxySig = httpProxy.createProxy({target:'http://localhost:8881',secureOptions:'constants.SSL_OP_NO_TLSv1_2'});
var callSig = httpProxy.createProxy({target:'http://localhost:6666',secureOptions:'constants.SSL_OP_NO_TLSv1_2'});
var proxyCdn = httpProxy.createProxy({target:'http://localhost:3030',secureOptions:'constants.SSL_OP_NO_TLSv1_2'});
// var proxyhttps= new httpProxy.createProxy({ target: 'https://localhost:443',secure:false});
var errorhandler = require('errorhandler');

app.all('*', function(req,res){
    if(req.hostname=='xxxxxxxx.in')
    {
        proxy.web(req, res); 
    }
    else if(req.hostname=='xxxx.in') …
Run Code Online (Sandbox Code Playgroud)

http-proxy node.js express socket.io

8
推荐指数
1
解决办法
3307
查看次数

Meteor 如何允许客户端 MongoDB 查询更新服务器?

客户端如何能够在浏览器(客户端)上执行 MongoDB 查询,以及它如何自动更新到服务器端?DDP协议如何工作?

mongodb 如何从客户端工作?

javascript meteor

3
推荐指数
1
解决办法
1110
查看次数

标签 统计

android ×1

express ×1

http-proxy ×1

javascript ×1

meteor ×1

node.js ×1

socket.io ×1

webrtc ×1