Skip to content

Commit

Permalink
feat: add local certificate to WebRTC
Browse files Browse the repository at this point in the history
  • Loading branch information
lchenut committed Oct 31, 2024
1 parent c91511a commit fcab9e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webrtc/webrtc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,6 @@ proc accept*(
): Future[DataChannelConnection] {.async: (raises: [CancelledError, WebRtcError]).} =
let sctpConn = await self.sctp.accept()
result = DataChannelConnection.new(sctpConn, true)

proc localCertificate(self: WebRTC): seq[byte] =
self.dtls.localCertificate()

0 comments on commit fcab9e7

Please sign in to comment.