LearnNewsExamplesServices
Frontmatter
id8012
titleEnhance WebSocket Connection with Observable Events
stateClosed
labels
enhancementai
assigneestobiu
createdAtDec 3, 2025, 3:35 PM
updatedAtDec 3, 2025, 4:12 PM
githubUrlhttps://github.com/neomjs/neo/issues/8012
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 3, 2025, 4:12 PM

Enhance WebSocket Connection with Observable Events

Closed v11.16.0 enhancementai
tobiu
tobiu commented on Dec 3, 2025, 3:35 PM

Goal: Enhance Neo.data.connection.WebSocket to be a proper Observable by firing events for all lifecycle stages and removing hardcoded console logs.

Requirements:

  1. Fire Events:
    • close: In onClose, fire close event with {event, reason, wasClean}.
    • error: In onError, fire error event with {error}.
    • message: In onMessage, fire message event with {data} (raw parsed JSON).
  2. Remove Logs: Remove the console.log statements in onClose and onError.
  3. Maintain Compatibility: Ensure existing promise-based message handling (mId) still works.
tobiu added the enhancement label on Dec 3, 2025, 3:35 PM
tobiu assigned to @tobiu on Dec 3, 2025, 3:39 PM
tobiu added the ai label on Dec 3, 2025, 3:40 PM
tobiu referenced in commit 329c0d8 - "Enhance WebSocket Connection with Observable Events #8012" on Dec 3, 2025, 3:41 PM
tobiu closed this issue on Dec 3, 2025, 4:12 PM