You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bindings/kotlin/README.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,10 +56,12 @@ val session = Session.create(configDir)
56
56
57
57
🗈 Note there can be multiple `Session`s per `Service`. This is useful for example when the app
58
58
consist of multiple components that all need to access the same set of Ouisync repositories. In
59
-
this example we keep things simple and use only once`Session`.
59
+
this example we keep things simple and use only one`Session`.
60
60
61
-
62
-
Then we can configure the networking. Start by setting up the network listeners. We use the QUIC protocol here. Ouisync supports both QUIC and TCP but QUIC generally works better. You can also enable both. Binding to `0.0.0.0` makes it listen on all interfaces and port `0` means bind to a random available port.
61
+
Then we can configure the networking. Start by setting up the network listeners. We use the QUIC
62
+
protocol here. Ouisync supports both QUIC and TCP but QUIC generally works better. You can also
63
+
enable both. Binding to `0.0.0.0` makes it listen on all interfaces and port `0` means bind to a
64
+
random available port.
63
65
64
66
```kotlin
65
67
session.bindNetwork(listOf("quic:0.0.0.0:0"))
@@ -76,7 +78,7 @@ To create repositories, we first need to specify the directory (or directories)
0 commit comments