Skip to content

Instantly share code, notes, and snippets.

@dragonsinth
Last active December 17, 2021 12:28
Show Gist options
  • Save dragonsinth/3f679ab73447384460a288ed0160942b to your computer and use it in GitHub Desktop.
Save dragonsinth/3f679ab73447384460a288ed0160942b to your computer and use it in GitHub Desktop.
for it := eventStream.Subscribe().Iterator(); true; {
v, err := it.Next(ctx)
if err == eventstream.ErrDone {
return nil
} else if err != nil {
return err
}
msg := v.(bwamp.Event)
// [Send msg to client]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment