Skip to content

Instantly share code, notes, and snippets.

@busti
Created June 8, 2020 15:49
Show Gist options
  • Save busti/43e1a9c4d35da4deb445b633ea2a29b9 to your computer and use it in GitHub Desktop.
Save busti/43e1a9c4d35da4deb445b633ea2a29b9 to your computer and use it in GitHub Desktop.
Complete WebSocketConnection Observable when the WebSocket is closed

The Websocket should respect the Observable behavior. It should...

  • cancel the Message Observable when the resource is cancelled.
  • cancel the Message Observable after the Close event is receieved.
  • return Stop in the Observer when the resource is cancelled.
  • return Stop in the Observer after the Close event is receieved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment