Skip to content

Instantly share code, notes, and snippets.

@monkey-codes
Created September 11, 2017 08:57
Show Gist options
  • Select an option

  • Save monkey-codes/caeb3a5d599db210ddf7a3144fb0c7e5 to your computer and use it in GitHub Desktop.

Select an option

Save monkey-codes/caeb3a5d599db210ddf7a3144fb0c7e5 to your computer and use it in GitHub Desktop.
WebFlux - Signalling disconnects
public void onComplete() {
lastReceivedEvent.ifPresent(event -> eventPublisher.onNext(
Event.type(USER_LEFT)
.withPayload()
.user(event.getUser())
.build()));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment