Skip to content

Conversation

isandeepj
Copy link

Summary

This patch fixes a compiler error related to non-exhaustive switch statements in the WebSocket event handler (likely from Starscream used by PieSocket). It adds an @unknown default case to future-proof the switch and ensure stability with SDK updates.

Changes

  • Added @unknown default to WebSocketEvent switch block
  • Prevents build failures when the SDK introduces new enum cases
  • Keeps event handling logic safe and extensible

…Socket event cases

- Prevents compile-time error when the SDK adds new enum cases
- Improves forward compatibility with future PieSocket/Channels SDK updates
- Resolves "switch must be exhaustive" error in Channel.swift
Fix: Add @unknown default to WebSocketEvent switch to ensure exhaustive handling
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant