@ -95,6 +84,9 @@ export default class WebsocketService {
@@ -95,6 +84,9 @@ export default class WebsocketService {
for(leti=0;i<messages.length;i++){
try{
message=JSON.parse(messages[i]);
if(this.handleMessage){
this.handleMessage(message);
}
}catch(e){
console.error(e,e.data);
return;
@ -133,6 +125,6 @@ export default class WebsocketService {
@@ -133,6 +125,6 @@ export default class WebsocketService {
functionhandleNetworkingError(error){
console.error(
`Chat has been disconnected and is likely not working for you. It's possible you were removed from chat. If this is a server configuration issue, visit troubleshooting steps to resolve. https://owncast.online/docs/troubleshooting/#chat-is-disabled: ${error}`
`Chat has been disconnected and is likely not working for you. It's possible you were removed from chat. If this is a server configuration issue, visit troubleshooting steps to resolve. https://owncast.online/docs/troubleshooting/#chat-is-disabled: ${error}`,