Skip to main content

Cosmos Driver

The Cosmos Driver functions are all functions related to updating and retrieving database records. This includes not only session data, but also SDP and ICE server data.

Functions

FunctionDescription
add_candidateAdds a SDP candidate to the cosmos DB. Candidate string describes the network connectivity information.
expire_sdpFinds any SDP from source, updates the record to expire it.
finish_candidatesAdds a record to indicate the end of the ICE candidates.
get_answerReturns a stored Session Description Protocol answer from cosmos
get_candidateGets an ICE candidate from cosmos DB
get_cosmosCreates a Cosmos database connection
get_ice_serversGets the Ice Servers
get_offerReturns a stored Session Description Protocol offer from cosmos
get_sessionsCreates a Cosmos Sessions DB connection
send_answerSends an "answer" to the Cosmos database using send_sdp
send_offerSends an "offer" to the Cosmos database using send_sdp