Added hermes websocket support. Added chat command support. Added selectable voice command via websocket. Added websocket heartbeat management.

This commit is contained in:
Tom
2024-03-15 12:27:35 +00:00
parent b5cc6b5706
commit d4004d6230
53 changed files with 1227 additions and 461 deletions

View File

@ -3,8 +3,8 @@ namespace TwitchChatTTS.OBS.Socket.Data
[Serializable]
public class EventMessage
{
public string eventType { get; set; }
public int eventIntent { get; set; }
public Dictionary<string, object> eventData { get; set; }
public string EventType { get; set; }
public int EventIntent { get; set; }
public Dictionary<string, object> EventData { get; set; }
}
}

View File

@ -3,13 +3,13 @@ namespace TwitchChatTTS.OBS.Socket.Data
[Serializable]
public class HelloMessage
{
public string obsWebSocketVersion { get; set; }
public int rpcVersion { get; set; }
public AuthenticationMessage authentication { get; set; }
public string ObsWebSocketVersion { get; set; }
public int RpcVersion { get; set; }
public AuthenticationMessage Authentication { get; set; }
}
public class AuthenticationMessage {
public string challenge { get; set; }
public string salt { get; set; }
public string Challenge { get; set; }
public string Salt { get; set; }
}
}

View File

@ -3,6 +3,6 @@ namespace TwitchChatTTS.OBS.Socket.Data
[Serializable]
public class IdentifiedMessage
{
public int negotiatedRpcVersion { get; set; }
public int NegotiatedRpcVersion { get; set; }
}
}

View File

@ -3,14 +3,14 @@ namespace TwitchChatTTS.OBS.Socket.Data
[Serializable]
public class IdentifyMessage
{
public int rpcVersion { get; set; }
public string? authentication { get; set; }
public int eventSubscriptions { get; set; }
public int RpcVersion { get; set; }
public string? Authentication { get; set; }
public int EventSubscriptions { get; set; }
public IdentifyMessage(int version, string auth, int subscriptions) {
rpcVersion = version;
authentication = auth;
eventSubscriptions = subscriptions;
RpcVersion = version;
Authentication = auth;
EventSubscriptions = subscriptions;
}
}
}

View File

@ -3,14 +3,14 @@ namespace TwitchChatTTS.OBS.Socket.Data
[Serializable]
public class RequestMessage
{
public string requestType { get; set; }
public string requestId { get; set; }
public Dictionary<string, object> requestData { get; set; }
public string RequestType { get; set; }
public string RequestId { get; set; }
public Dictionary<string, object> RequestData { get; set; }
public RequestMessage(string type, string id, Dictionary<string, object> data) {
requestType = type;
requestId = id;
requestData = data;
RequestType = type;
RequestId = id;
RequestData = data;
}
}
}

View File

@ -3,9 +3,9 @@ namespace TwitchChatTTS.OBS.Socket.Data
[Serializable]
public class RequestResponseMessage
{
public string requestType { get; set; }
public string requestId { get; set; }
public object requestStatus { get; set; }
public Dictionary<string, object> responseData { get; set; }
public string RequestType { get; set; }
public string RequestId { get; set; }
public object RequestStatus { get; set; }
public Dictionary<string, object> ResponseData { get; set; }
}
}