From 23929a062eca91b106d9345bc44c637572a77452 Mon Sep 17 00:00:00 2001 From: Rodrigo Emanuel Date: Sun, 11 May 2025 03:00:07 -0300 Subject: [PATCH] Delete js/kick/old.module.js --- js/kick/old.module.js | 63 ------------------------------------------- 1 file changed, 63 deletions(-) delete mode 100644 js/kick/old.module.js diff --git a/js/kick/old.module.js b/js/kick/old.module.js deleted file mode 100644 index f82314e..0000000 --- a/js/kick/old.module.js +++ /dev/null @@ -1,63 +0,0 @@ -/* -const kickWebSocket = new WebSocket( - `wss://ws-us2.pusher.com/app/32cbd69e4b950bf97679?protocol=7&client=js&version=8.4.0-rc2&flash=false` -); - -kickWebSocket.onerror = (error) => { - console.error("Kick WebSocket Error: " + error); -}; - -kickWebSocket.onopen = () => { - - kickGetUserInfo(kickUser) - .then((userInfo) => { - console.log('Got Kick User Info', userInfo); - - kickWebSocket.send( - JSON.stringify({ - event: "pusher:subscribe", - data: { - auth: null, - channel: `chatrooms.${userInfo.chatroom.id}.v2` - }, - }) - ); - - kickWebSocket.send( - JSON.stringify({ - event: "pusher:subscribe", - data: { - auth: null, - channel: `channel.${userInfo.chatroom.channel_id}` - }, - }) - ); - - kickWebSocket.send( - JSON.stringify({ - event: "pusher:subscribe", - data: { - auth: null, - channel: `private-channel_${userInfo.chatroom.channel_id}` - }, - }) - ); - - - }); - -}; - -kickWebSocket.onmessage = async ({ data }) => { - const parsed = JSON.parse(data); - const json = JSON.parse(parsed.data); - - console.debug('Kick Event', parsed.event, json); - - if (parsed.event === "App\\Events\\ChatMessageEvent") { - console.debug('Kick Chat', json); - kickChatMessage(json); - } -}; - -*/