You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(realtime): implement event buffering for URLSessionWebSocket
Add event buffering mechanism to prevent message loss when onEvent callback
is not yet attached. Events are buffered and replayed when callback is set.
- Add eventBuffer to MutableState to store incoming events
- Modify _trigger to buffer events when onEvent is nil
- Update onEvent setter to replay buffered events when callback attached
- Implement 100-event buffer limit to prevent memory issues
- Clear buffer on connection close for proper cleanup
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
0 commit comments