mirror of
https://github.com/Yonle/bostr.git
synced 2025-09-29 14:22:38 +02:00
@@ -270,7 +270,8 @@ function newConn(addr, id) {
|
||||
const relay = new WebSocket(addr, {
|
||||
headers: {
|
||||
"User-Agent": "Bostr; The nostr relay bouncer; https://github.com/Yonle/bostr"
|
||||
}
|
||||
},
|
||||
noDelay: true
|
||||
});
|
||||
|
||||
relay.id = id;
|
||||
|
2
http.js
2
http.js
@@ -9,7 +9,7 @@ const curD = _ => (new Date()).toLocaleString("ia");
|
||||
const log = _ => console.log(process.pid, curD(), "-", _);
|
||||
|
||||
// Server
|
||||
const server = http.createServer()
|
||||
const server = http.createServer({ noDelay: true })
|
||||
const wss = new WebSocket.WebSocketServer({ noServer: true });
|
||||
|
||||
server.on('request', (req, res) => {
|
||||
|
Reference in New Issue
Block a user