Last active
December 17, 2021 12:28
-
-
Save dragonsinth/3f679ab73447384460a288ed0160942b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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