Synchronously sends a message. The endpoint
should be in the Connected state. This method is not recommended
for a UI thread.
Namespace:
Microsoft.Rtc.Signaling
Assembly:
Microsoft.Rtc.Collaboration(in
Microsoft.Rtc.Collaboration.dll)
Syntax
JavaScript |
function
sendMessage(
messageType,
sessionTarget,
contentType,
body);
|
Return Value
The response data.
Exceptions
Exception |
Condition |
ArgumentNullException
|
Thrown when non-null is expected for an argument. The argument
name for which a non-null is expected is part of the exception
message. |
ObjectDisposedException
|
Thrown when the session object is disposed. |
Microsoft.Rtc.Signaling
.
.
::
.
FailureResponseException
|
Thrown when the server or remote participant returns an error.
The response code in the exception should give more information
about the error. |
Microsoft.Rtc.Signaling
.
.
::
.
RealTimeException
|
Encompasses an SIP error or failure cases encountered during
sending the message - SIP Transport error, SIP Authentication, and
credential-related errors. |
See Also