Skip to content

Commit

Permalink
add a couple comments
Browse files Browse the repository at this point in the history
  • Loading branch information
markwinter committed Nov 26, 2023
1 parent 564c121 commit 5ef22f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/soupbintcp-client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ func main() {
soupbintcp.WithDebugCallback(DebugPacket),
)

// Login() will login with an empty session id and sequence number 1, as is recommended by the spec
// If you know the session and sequence number, use LoginSession()
if err := client.Login(); err != nil {
log.Printf("login failed: %v\n", err)
return
Expand All @@ -39,5 +41,6 @@ func main() {
}

// Blocks until end of session packet received. Use a goroutine to unblock
// Will automatically attempt to re-connect and resume the same session and sequence number
client.Receive()
}

0 comments on commit 5ef22f3

Please sign in to comment.