Commit 73ebfa7
fix: restore missing _trigger_callbacks method in EventHandlingMixin
The _trigger_callbacks method was accidentally removed during the type error fixes,
causing "AttributeError: 'ProjectXRealtimeClient' object has no attribute '_trigger_callbacks'"
errors during real-time event processing.
This commit restores the method implementation that:
- Triggers all registered callbacks for an event type
- Handles both async and sync callbacks properly
- Includes proper error handling for callback exceptions
- Executes callbacks in registration order
The method is required by the EventHandlingProtocol and is called by
_schedule_async_task when processing real-time events from SignalR.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>1 parent b6ecfaf commit 73ebfa7
1 file changed
+32
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
211 | 211 | | |
212 | 212 | | |
213 | 213 | | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
214 | 246 | | |
215 | 247 | | |
216 | 248 | | |
| |||
0 commit comments