Skip to content

Commit

Permalink
Updated error message when forwarding WebSocket events
Browse files Browse the repository at this point in the history
  • Loading branch information
Xemdo committed Mar 12, 2024
1 parent e5c22fe commit 1c842bc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/events/trigger/trigger_event.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,10 @@ https://dev.twitch.tv/docs/eventsub/handling-webhook-events#processing-an-event`
if strings.EqualFold(p.Transport, "websocket") {
client, err := rpc.DialHTTP("tcp", ":44747")
if err != nil {
return "", errors.New("Failed to dial RPC handler for WebSocket server. Is it online?\nError: " + err.Error())
return "", errors.New(
"Failed to dial RPC handler for WebSocket server; It may not be running. See `twitch event websocket --help` for help on starting the WebSocket server.\n" +
"Error: " + err.Error(),
)
}

var reply rpc_handler.RPCResponse
Expand Down

0 comments on commit 1c842bc

Please sign in to comment.