Point fakechat test script to localhost by default. Commit package.json

This commit is contained in:
Gabe Kangas
2021-01-02 12:16:53 -08:00
parent 67c3f8ee38
commit fca3b02851
3 changed files with 27 additions and 11 deletions

View File

@@ -18,7 +18,7 @@ var availableMessages = messages.slice();
const WebSocket = require('ws');
const ws = new WebSocket('wss://watch.owncast.online/entry', {
const ws = new WebSocket('ws://localhost:8080/entry', {
origin: 'http://watch.owncast.online',
});
@@ -53,7 +53,7 @@ function sendMessage() {
ws.send(JSON.stringify(testMessage));
const nextMessageTimeout = (Math.floor(Math.random() * (25 - 10)) + 10) * 1000;
const nextMessageTimeout = (Math.floor(Math.random() * (25 - 10)) + 10) * 100;
setTimeout(sendMessage, nextMessageTimeout);
}