try this
This commit is contained in:
@@ -49,7 +49,7 @@ public sealed class ResponsePlanToSocketMessagesMapper
|
|||||||
|
|
||||||
if (!isWordOfDayLaunch)
|
if (!isWordOfDayLaunch)
|
||||||
{
|
{
|
||||||
messages.AddRange(new SocketReplyPlan(JsonSerializer.Serialize(new
|
messages.Add(new SocketReplyPlan(JsonSerializer.Serialize(new
|
||||||
{
|
{
|
||||||
type = "LISTEN",
|
type = "LISTEN",
|
||||||
transID = transId,
|
transID = transId,
|
||||||
@@ -75,17 +75,18 @@ public sealed class ResponsePlanToSocketMessagesMapper
|
|||||||
score = 0.95
|
score = 0.95
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})),
|
|
||||||
new SocketReplyPlan(JsonSerializer.Serialize(new
|
|
||||||
{
|
|
||||||
type = "EOS",
|
|
||||||
ts = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(),
|
|
||||||
msgID = CreateHubMessageId(),
|
|
||||||
transID = transId,
|
|
||||||
data = new { }
|
|
||||||
})));
|
})));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
messages.Add(new SocketReplyPlan(JsonSerializer.Serialize(new
|
||||||
|
{
|
||||||
|
type = "EOS",
|
||||||
|
ts = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(),
|
||||||
|
msgID = CreateHubMessageId(),
|
||||||
|
transID = transId,
|
||||||
|
data = new { }
|
||||||
|
})));
|
||||||
|
|
||||||
if (emitSkillActions && speak is not null)
|
if (emitSkillActions && speak is not null)
|
||||||
{
|
{
|
||||||
messages.Add(new SocketReplyPlan(
|
messages.Add(new SocketReplyPlan(
|
||||||
|
|||||||
Reference in New Issue
Block a user