Skip to content

Commit

Permalink
NewMultiClient will return immediately when at least one client is cr…
Browse files Browse the repository at this point in the history
…eated

Signed-off-by: Yilun <[email protected]>
  • Loading branch information
yilunzhang committed Apr 1, 2020
1 parent 437fed1 commit 468f052
Show file tree
Hide file tree
Showing 2 changed files with 138 additions and 125 deletions.
2 changes: 2 additions & 0 deletions examples/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ func main() {
defer toClient.Close()
<-toClient.OnConnect.C

time.Sleep(time.Second)

timeSent := time.Now().UnixNano() / int64(time.Millisecond)
var timeReceived int64
go func() {
Expand Down
Loading

0 comments on commit 468f052

Please sign in to comment.