This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/node | |
/* creates a data channel between two peer connections and sends binary messages | |
* after ~4000 messages it will segfault | |
* reproducible with nodejs-0.10.31 & wrtc-0.0.29 | |
*/ | |
var servers = null, options = {optional: [{DtlsSrtpKeyAgreement:true}]}; | |
var rx, tx, tx_channel; | |
/* receiving peer */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require("express"); | |
let app = express(); | |
let basicAuth = require("express-basic-auth"); | |
app.use(basicAuth({ | |
users: { | |
"brainsights": "donthackus", | |
}, | |
challenge: true, |
OlderNewer