Take control over your live stream video by running it yourself. Streaming + chat out of the box.
HTML activitypubbroadcastingchatdecentralizedfederationfediversegolanghacktoberfesthlslivelivestreamowncastrtmpself-hostedstreaming-videovideo
Point fakechat test script to localhost by default. Commit package.json
Gabe Kangasaa4a24df3cf4
diff --git a/test/.gitignore b/test/.gitignorenew file mode 100644index 0000000000..3c3629e647--- /dev/null+++ b/test/.gitignore@@ -0,0 +1 @@+node_modulesdiff --git a/test/fakeChat.js b/test/fakeChat.jsindex 852951837a..0e7cedd2a2 100644--- a/test/fakeChat.js+++ b/test/fakeChat.js@@ -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);}diff --git a/test/package-lock.json b/test/package-lock.jsonindex f4e9510170..08dac60375 100644--- a/test/package-lock.json+++ b/test/package-lock.json@@ -6,6 +6,7 @@"version": "1.1.3","resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz","integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==",+ "dev": true,"requires": {"object-keys": "^1.0.12"}@@ -14,6 +15,7 @@"version": "1.17.6","resolved": "https://registry.npmjs.org/es-abstract/-/es-abstract-1.17.6.tgz","integrity": "sha512-Fr89bON3WFyUi5EvAeI48QTWX0AyekGgLA8H+c+7fbfCkJwRWRMLd8CQedNEyJuoYYhmtEqY92pgte1FAhBlhw==",+ "dev": true,"requires": {"es-to-primitive": "^1.2.1","function-bind": "^1.1.1",@@ -32,6 +34,7 @@"version": "1.2.1","resolved": "https://registry.npmjs.org/es-to-primitive/-/es-to-primitive-1.2.1.tgz","integrity": "sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA==",+ "dev": true,"requires": {"is-callable": "^1.1.4","is-date-object": "^1.0.1",@@ -41,12 +44,14 @@"function-bind": {"version": "1.1.1","resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz",- "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A=="+ "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==",+ "dev": true},"has": {"version": "1.0.3","resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz","integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==",+ "dev": true,"requires": {"function-bind": "^1.1.1"}@@ -54,22 +59,26 @@"has-symbols": {"version": "1.0.1","resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.1.tgz",- "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg=="+ "integrity": "sha512-PLcsoqu++dmEIZB+6totNFKq/7Do+Z0u4oT0zKOJNl3lYK6vGwwu2hjHs+68OEZbTjiUE9bgOABXbP/GvrS0Kg==",+ "dev": true},"is-callable": {"version": "1.2.0","resolved": "https://registry.npmjs.org/is-callable/-/is-callable-1.2.0.tgz",- "integrity": "sha512-pyVD9AaGLxtg6srb2Ng6ynWJqkHU9bEM087AKck0w8QwDarTfNcpIYoU8x8Hv2Icm8u6kFJM18Dag8lyqGkviw=="+ "integrity": "sha512-pyVD9AaGLxtg6srb2Ng6ynWJqkHU9bEM087AKck0w8QwDarTfNcpIYoU8x8Hv2Icm8u6kFJM18Dag8lyqGkviw==",+ "dev": true},"is-date-object": {"version": "1.0.2","resolved": "https://registry.npmjs.org/is-date-object/-/is-date-object-1.0.2.tgz",- "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g=="+ "integrity": "sha512-USlDT524woQ08aoZFzh3/Z6ch9Y/EWXEHQ/AaRN0SkKq4t2Jw2R2339tSXmwuVoY7LLlBCbOIlx2myP/L5zk0g==",+ "dev": true},"is-regex": {"version": "1.1.0","resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.0.tgz","integrity": "sha512-iI97M8KTWID2la5uYXlkbSDQIg4F6o1sYboZKKTDpnDQMLtUL86zxhgDet3Q2SriaYsyGqZ6Mn2SjbRKeLHdqw==",+ "dev": true,"requires": {"has-symbols": "^1.0.1"}@@ -78,6 +87,7 @@"version": "1.0.3","resolved": "https://registry.npmjs.org/is-symbol/-/is-symbol-1.0.3.tgz","integrity": "sha512-OwijhaRSgqvhm/0ZdAcXNZt9lYdKFpcRDT5ULUuYXPoT794UNOdU+gpT6Rzo7b4V2HUl/op6GqY894AZwv9faQ==",+ "dev": true,"requires": {"has-symbols": "^1.0.1"}@@ -85,17 +95,20 @@"object-inspect": {"version": "1.8.0","resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.8.0.tgz",- "integrity": "sha512-jLdtEOB112fORuypAyl/50VRVIBIdVQOSUUGQHzJ4xBSbit81zRarz7GThkEFZy1RceYrWYcPcBFPQwHyAc1gA=="+ "integrity": "sha512-jLdtEOB112fORuypAyl/50VRVIBIdVQOSUUGQHzJ4xBSbit81zRarz7GThkEFZy1RceYrWYcPcBFPQwHyAc1gA==",+ "dev": true},"object-keys": {"version": "1.1.1","resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",- "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA=="+ "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==",+ "dev": true},"object.assign": {"version": "4.1.0","resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz","integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==",+ "dev": true,"requires": {"define-properties": "^1.1.2","function-bind": "^1.1.1",@@ -107,6 +120,7 @@"version": "1.0.1","resolved": "https://registry.npmjs.org/string.prototype.trimend/-/string.prototype.trimend-1.0.1.tgz","integrity": "sha512-LRPxFUaTtpqYsTeNKaFOw3R4bxIzWOnbQ837QfBylo8jIxtcbK/A/sMV7Q+OAV/vWo+7s25pOE10KYSjaSO06g==",+ "dev": true,"requires": {"define-properties": "^1.1.3","es-abstract": "^1.17.5"@@ -116,15 +130,16 @@"version": "1.0.1","resolved": "https://registry.npmjs.org/string.prototype.trimstart/-/string.prototype.trimstart-1.0.1.tgz","integrity": "sha512-XxZn+QpvrBI1FOcg6dIpxUPgWCPuNXvMD72aaRaUQv1eD4e/Qy8i/hFTe0BUmD60p/QA6bh1avmuPTfNjqVWRw==",+ "dev": true,"requires": {"define-properties": "^1.1.3","es-abstract": "^1.17.5"}},"ws": {- "version": "7.3.1",- "resolved": "https://registry.npmjs.org/ws/-/ws-7.3.1.tgz",- "integrity": "sha512-D3RuNkynyHmEJIpD2qrgVkc9DQ23OrN/moAwZX4L8DfvszsJxpjQuUq3LMx6HoYji9fbIOBY18XWBsAux1ZZUA=="+ "version": "7.4.2",+ "resolved": "https://registry.npmjs.org/ws/-/ws-7.4.2.tgz",+ "integrity": "sha512-T4tewALS3+qsrpGI/8dqNMLIVdq/g/85U98HPMa6F0m6xTbvhXU6RCQLqPH3+SlomNV/LdY6RXEbBpMH6EOJnA=="}}}