We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dc61b1 commit 9b7cf3cCopy full SHA for 9b7cf3c
README.md
@@ -62,6 +62,12 @@ String apiSecret = "YOUR API SECRET";
62
OpenTok opentok = new OpenTok(apiKey, apiSecret)
63
```
64
65
+And make sure you call `close` when you are done to prevent leaked file descriptors.
66
+
67
+```java
68
+opentok.close();
69
+```
70
71
## Creating Sessions
72
73
To create an OpenTok Session, use the `OpenTok` instance's `createSession(SessionProperties properties)`
src/main/java/com/opentok/OpenTok.java
@@ -451,5 +451,9 @@ public OpenTok build() {
451
452
return new OpenTok(this.apiKey, this.apiSecret, clientBuilder.build());
453
}
454
- }
+ }
455
456
+ public void close() {
457
+ this.client.close();
458
459
0 commit comments