Skip to content
Snippets Groups Projects
Commit 30721918 authored by Jono Wenger's avatar Jono Wenger
Browse files

Minor fixes and add blank README

parent ae5ea3e0
Branches
Tags
1 merge request!1Connection server
# xxdk Connection Server Example
...@@ -115,11 +115,10 @@ func main() { ...@@ -115,11 +115,10 @@ func main() {
// Start connection server---------------------------------------------------------- // Start connection server----------------------------------------------------------
// Start the connection server, which // Start the connection server, which will allow clients to start connections with you
e2eParams := xxdk.GetDefaultE2EParams()
connectionListParams := connect.DefaultConnectionListParams() connectionListParams := connect.DefaultConnectionListParams()
_, err = connect.StartServer( _, err = connect.StartServer(
identity, cb, baseClient, e2eParams, connectionListParams) identity, cb, baseClient, params, connectionListParams)
if err != nil { if err != nil {
jww.FATAL.Panicf("Unable to start connection server: %+v", err) jww.FATAL.Panicf("Unable to start connection server: %+v", err)
} }
...@@ -153,7 +152,7 @@ func main() { ...@@ -153,7 +152,7 @@ func main() {
// Create a tracker channel to be notified of network changes // Create a tracker channel to be notified of network changes
connected := make(chan bool, 10) connected := make(chan bool, 10)
// Provide a callback that will be signalled when network health status changes // Provide a callback that will be signalled when network health status changes
baseClient.GetCmix().AddHealthCallback( e2eClient.GetCmix().AddHealthCallback(
func(isConnected bool) { func(isConnected bool) {
connected <- isConnected connected <- isConnected
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment