• Articles
  • Api Documentation
Search Results for

    Show / Hide Table of Contents
    • AdditionalData
      • AdrParametersItemChoiceEnum
      • AnniversaryItemChoiceEnum
      • BdayItemChoiceEnum
      • ByRefType
      • CallerInfo
      • CommentSubType
      • CommentType
      • DeviceInfoType
      • DeviceInfoTypeUniqueDeviceID
      • EmergencyCallDataValueType
      • JCard
      • KeyItemChoiceEnum
      • LocationInfo
      • ProvidedBy
      • ProvidedByType
      • ProviderInfoType
      • RelatedParametersItemChoiceEnum
      • SchemaConsts
      • ServiceInfoType
      • SubcontractorPriorityType
      • SubscriberInfoType
      • TelContactInfo
      • TelItemChoiceEnum
      • VcardTypeTzItemChoiceEnum
      • adr
      • adrParameters
      • adrParametersGeo
      • adrParametersTZ
      • altid
      • anniversary
      • anniversaryParameters
      • bday
      • bdayParameters
      • caladruri
      • caladruriParameters
      • calscale
      • calscaleText
      • caluri
      • caluriParameters
      • categories
      • categoriesParameters
      • clientpidmap
      • email
      • emailParameters
      • fburl
      • fburlParameters
      • fn
      • fnParameters
      • gender
      • group
      • impp
      • imppParameters
      • key
      • keyParameters
      • kind
      • label
      • lang
      • langParameters
      • language
      • logo
      • logoParameters
      • mediatype
      • member
      • memberParameters
      • n
      • nParameters
      • nickname
      • nicknameParameters
      • note
      • noteParameters
      • org
      • orgParameters
      • photo
      • photoParameters
      • pid
      • pref
      • prodid
      • related
      • relatedParameters
      • relatedParametersText
      • role
      • roleParameters
      • sex
      • sortas
      • sound
      • soundParameters
      • source
      • sourceParameters
      • tel
      • telParameters
      • title
      • titleParameters
      • type
      • typeText
      • uid
      • url
      • urlParameters
      • valuetimestamp
      • vcardType
      • vcardTypeGeo
      • vcardTypeGeoParameters
      • vcardTypeTZ
      • vcardTypeTZParameters
      • vcards
    • AgencyLocator
      • LocatorRecord
      • LocatorRecordUri
      • LocatorRecordUriArray
      • NameSet
      • NameSetArray
    • BadActor
      • BadActorContents
    • CommonAlertingProtocol
      • alert
      • alertInfo
      • alertInfoArea
      • alertInfoAreaGeocode
      • alertInfoCategory
      • alertInfoCertainty
      • alertInfoEventCode
      • alertInfoParameter
      • alertInfoResource
      • alertInfoResponseType
      • alertInfoSeverity
      • alertInfoUrgency
      • alertMsgType
      • alertScope
      • alertStatus
    • ConferenceEvent
      • calltype
      • conferencedescriptiontype
      • conferencemediatype
      • conferencemediumtype
      • conferencestatetype
      • conferencetype
      • disconnectiontype
      • endpointstatustype
      • endpointtype
      • executiontype
      • hosttype
      • joiningtype
      • mediastatustype
      • mediatype
      • sidebarsbyvaltype
      • sipdialogidtype
      • statetype
      • uristype
      • uritype
      • userrolestype
      • userstype
      • usertype
    • DiscrepancyReporting
      • AdrDiscrepancyReport
      • AdrProblemEnum
      • BcfDiscrepancyReport
      • BcfProblemEnum
      • CallTakerDiscrepancyReport
      • CallTransferDiscrepancyReport
      • DRTypeEnum
      • DiscrepancyReport
      • DiscrepancyReportResponse
      • DiscrepancyResolution
      • DrResolutionEnum
      • DrServerityEnum
      • EsrpDiscrepancyReport
      • EsrpProblemEnum
      • GisDiscrepancyReport
      • GisProblemEnum
      • ImrDiscrepancyReport
      • ImrProblemEnum
      • LisDiscrepancyReport
      • LisProblemEnum
      • LogSignatureCertificateDiscrepancyReport
      • LogSignatureProblemEnum
      • LoggingDiscrepancyReport
      • LoggingProblemEnum
      • LostDiscrepancyReport
      • LostProblemEnum
      • LostQueryTypeEnum
      • McsDiscrepancyReport
      • NetworkDiscrepancyReport
      • NetworkProblemEnum
      • OriginatingServiceDiscrepancyReport
      • OriginatingServiceProblemEnum
      • PermissionsDiscrepancyReport
      • PermissionsProblemEnum
      • PolicyDiscrepancyReport
      • PolicyProblemEnum
      • PolicyStoreDiscrepancyReport
      • PolicyStoreProblemEnum
      • SipDiscrepancyReport
      • SipProblemEnum
      • StatusUpdate
      • TestCallDiscrepancyReport
      • TestCallProblemEnum
    • ECall
      • ackType
      • ackTypeActionResult
      • capabilitiesType
      • controlType
      • requestType
      • requestTypeText
    • Geocode
      • GeoCodeCivicAddress
      • GeodeticData
    • Held
      • HeldConsts
      • HeldDevice
      • HeldError
      • HeldErrorMessage
      • HeldIp
      • LocationRequest
      • LocationResponse
      • LocationType
      • LocationUriSet
    • HttpUtils
      • AsyncHttpRequestor
      • HttpMethodEnum
      • HttpResults
    • I3SubNot
      • AbandonedCall
      • DequeueRegistrationRequestBody
      • DequeueRegistrationResponseBody
      • ElementState
      • ElementStateType
      • EsrpNotify
      • GapOverlap
      • QueueState
      • QueueStateType
      • SecurityPostureType
      • ServiceState
      • ServiceStateType
      • ServiceType
      • SubNotConsts
      • calltype
      • conferencedescriptiontype
      • conferencemediatype
      • conferencemediumtype
      • conferencestatetype
      • conferencetype
      • disconnectiontype
      • endpointstatustype
      • endpointtype
      • executiontype
      • hosttype
      • joiningtype
      • mediastatustype
      • mediatype
      • sidebarsbyvaltype
      • sipdialogidtype
      • statetype
      • uristype
      • uritype
      • userrolestype
      • userstype
      • usertype
    • I3V3.LogEvents
      • AdditionalAgencyLogEvent
      • AdditionalDataQueryLogEvent
      • AdditionalDataResponseLogEvent
      • AgencyIdArray
      • AgentStateChangeLogEvent
      • AliLocationQueryLogEvent
      • AliLocationResponseLogEvent
      • CallEndLogEvent
      • CallIdArray
      • CallLogEvent
      • CallProcessLogEvent
      • CallSignalingMessageLogEvent
      • CallStartLogEvent
      • CallStateChangeLogEvent
      • CallTransferLogEvent
      • DiscrepancyReportLogEvent
      • EidoDeniedLogEvent
      • EidoDereferenceFactoryQueryLogEvent
      • EidoDereferenceFactoryQueryResponseLogEvent
      • EidoLogEvent
      • EidoTransmissionErrorLogEvent
      • ElementStateChangeLogEvent
      • GatewayCallLogEvent
      • HookflashLogEvent
      • I3LogEventContent
      • IncidentClearLogEvent
      • IncidentIdArray
      • IncidentLinkLogEvent
      • IncidentMergeLogEvent
      • IncidentReopenLogEvent
      • IncidentSplitLogEvent
      • IncidentUnLinkLogEvent
      • IncidentUnMergeLogEvent
      • KeepAliveFailureLogEvent
      • LegacyDigitsLogEvent
      • LocationQueryLogEvent
      • LocationResponseLogEvent
      • LogEvent
      • LogEventContainer
      • LogEventContainerArray
      • LogEventIdArray
      • LostQueryLogEvent
      • LostResponseLogEvent
      • MalformedMessageLogEvent
      • MediaEndLogEvent
      • MediaStartLogEvent
      • MessageLogEvent
      • NonRtpMediaMessageLogEvent
      • PolicyChangeLogEvent
      • QueueStateChangeLogEvent
      • RecCallEndLogEvent
      • RecCallStartLogEvent
      • RecMediaEndLogEvent
      • RecMediaStartLogEvent
      • RecordingFailedLogEvent
      • RouteLogEvent
      • RouteRuleMsgLogEvent
      • ServiceStateChangeLogEvent
      • SipRecMetadataLogEvent
      • SubParamsType
      • SubscribeLogEvent
      • SubscriptionRequestedLogEvent
      • SubscriptionRequestedResponseLogEvent
      • SubscriptionTerminatedLogEvent
      • SubscriptionTerminatedResponseLogEvent
      • VersionsLogEvent
      • WebSocketEstablishedLogEvent
      • WebSocketTerminatedLogEvent
    • I3V3.LoggingHelpers
      • I3LogEventClient
      • I3LogEventClientMgr
      • I3LoggingErrorDelegate
      • I3LoggingUtils
      • LoggingServerStatusChangedDeletate
    • Lost
      • DisplayName
      • FindService
      • FindServiceResponse
      • GetServiceBoundary
      • GetServiceBoundaryResponse
      • ListServices
      • ListServicesByLocation
      • ListServicesByLocationResponse
      • ListServicesResponse
      • LocationUsed
      • LostErrors
      • LostHelper
      • LostMsgBase
      • LostPath
      • LostRedirect
      • LostWarnings
      • Mapping
      • PathVia
      • ServiceBoundaryReference
    • Msag
      • MsagData
      • PidfLoData
    • Ng911CertUtils
      • CertUtils
      • DistinguishedNameParams
      • KeyUsageParams
      • Ng911SanParams
      • Roles
    • Ng911Common
      • ConditionTypeEnum
      • I3JoseHeader
      • I3Jws
      • VersionItemType
      • VersionServiceInfoType
      • VersionsArrayType
    • Ng911Lib.Utilities
      • ContentTypes
      • JsonHelper
      • PurposeTypes
      • TimeUtils
      • Utf8StringWriter
      • XmlHelper
    • NgWebSockets
      • NgWebSocketClient
      • WebSocketMessageReceived
    • Pidf
      • ArcBand
      • Axis
      • Circle
      • CivicAddress
      • Confidence
      • Device
      • DirectionType
      • DynamicType
      • Ellipse
      • Ellipsoid
      • Exterior
      • GeoPriv
      • LinearRing
      • Orientation
      • PdfEnum
      • Person
      • Point
      • Polygon
      • Position
      • Presence
      • Prism
      • PrismBase
      • Radius
      • Sphere
      • Status
      • Tuple
      • locInfoType
      • locPolicyType
    • PolicyRouting
      • ActionBase
      • AdditionalDataCondition
      • BodyPartCondition
      • BusyAction
      • CallSourceCondition
      • CallSuspicionCondition
      • CallingNumberVerificationStatusCondition
      • CapCondition
      • ConditionBase
      • IncomingQueueCondition
      • InvokePolicyAction
      • LocationCondition
      • LogAction
      • LostServiceUrnCondition
      • MimeBodyCondition
      • NormalHextHopCondition
      • NotifyAction
      • OpCode
      • Pref
      • PrrLocation
      • QueueStateCondition
      • RequestUriCondition
      • RouteAction
      • Rule
      • SdpOfferCondition
      • SecurityPostureCondition
      • ServiceStateCondition
      • SipHeaderCondition
      • TimePeriodCondition
    • PolicyStore
      • Policy
      • PolicyArray
      • PolicyEnum
      • PolicyEnumArray
      • PolicyTypeEnum
    • SipRecMetaData
      • dataMode
      • group
      • name
      • nameID
      • participant
      • participantsessionassoc
      • participantsessionassocParam
      • participantstreamassoc
      • reason
      • recording
      • requestsnapshot
      • session
      • sessionrecordingassoc
      • stream
    • TestCall
      • ConditionType
      • PrrTest
      • SendCallRequests
    • Veds
      • ActivityLocationAssociationType
      • ActivityType
      • AddressType
      • AirbagCategoryCodeSimpleType
      • AirbagCategoryCodeType
      • AirbagType
      • AngleMeasureType
      • AssociationType
      • AutomatedCrashNotificationType
      • BinaryType
      • CommercialCarrierUSDOTNumberType
      • ComplexObjectType
      • ContactActivityType
      • ContactInformationType
      • ContactInformationType1
      • ConveyanceType
      • CrashPersonRoleCodeSimpleType
      • CrashPersonRoleCodeType
      • CrashPersonType
      • CrashPersonType1
      • CrashType
      • CrashType1
      • CrashVehicleType
      • CrossStreetType
      • DateType
      • DatumCodeSimpleType
      • DatumCodeType
      • DocumentType
      • DriverLicenseBaseType
      • DriverLicenseType
      • DrivingIncidentType
      • FullTelephoneNumberType
      • IdentificationType
      • ImageType
      • IncidentType
      • InternationalTelephoneNumberType
      • ItemType
      • ItemsChoiceType
      • LatitudeCoordinateType
      • LatitudeDegreeType
      • LocationType
      • LongitudeCoordinateType
      • LongitudeDegreeType
      • MeasurePointValueType
      • MeasureType
      • NotificationDestinationOrganizationType
      • NotificationDeviceTypeCodeSimpleType
      • NotificationDeviceTypeCodeType
      • NotificationOriginatingOrganizationType
      • OrganizationContactInformationAssociationType
      • OrganizationType
      • PersonContactInformationAssociationType
      • PersonLanguageType
      • PersonNameTextType
      • PersonNameType
      • PersonType
      • PersonType1
      • PowerSourceCategoryCodeSimpleType
      • PowerSourceCategoryCodeType
      • ProperNameTextType
      • ReferenceType
      • SEXCodeSimpleType
      • SEXCodeType
      • SpeedMeasureType
      • StreetType
      • StructuredAddressType
      • TangibleItemType
      • TelephoneNumberType
      • TextType
      • TwoDimensionalGeographicCoordinateType
      • VEDSNotificationOriginatorCodeSimpleType
      • VEDSNotificationOriginatorCodeType
      • VehicleAutonomousCapabilityCodeSimpleType
      • VehicleAutonomousCapabilityCodeType
      • VehicleBodyCategoryCodeSimpleType
      • VehicleBodyCategoryCodeType
      • VehicleCrashPulseType
      • VehicleFinalRestOrientationCodeSimpleType
      • VehicleFinalRestOrientationCodeType
      • VehiclePropulsionStorageCodeSimpleType
      • VehiclePropulsionStorageCodeType
      • VehicleSeatLocationCategoryCodeSimpleType
      • VehicleSeatLocationCategoryCodeType
      • VehicleSeatType
      • VehicleType
      • WeightMeasureType
      • anyURI
      • boolean
      • date
      • dateTime
      • gYear
      • nonNegativeInteger
      • string

    Class NgWebSocketClient

    Class for a Web Socket Client that can be used for NG9-1-1 applications.

    Inheritance
    object
    NgWebSocketClient
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: NgWebSockets
    Assembly: Ng911Lib.dll
    Syntax
    public class NgWebSocketClient

    Constructors

    | Edit this page View Source

    NgWebSocketClient(X509Certificate2, string, RemoteCertificateValidationCallback)

    Constructs a new Web Socket client object. After calling this constructor, hook the MessageReceived event, then call Connect().

    Declaration
    public NgWebSocketClient(X509Certificate2 clientCertificate, string strSubProtocol, RemoteCertificateValidationCallback validationCallback)
    Parameters
    Type Name Description
    X509Certificate2 clientCertificate

    Client X.509 certificate to use if mutual authentication is required (i.e., the server requires a client certificate). May be null if mutual authentication is not required.

    string strSubProtocol

    Sets the sub-protocol for the web socket connection. If not null, then the Sec-WebSocket-Protocol HTTP header will be set to this value. May be null if a sub-protocol is not being used.

    RemoteCertificateValidationCallback validationCallback

    Specifies an application provided callback function that will be called to valicate the web socket server's X.509 certificate. May be null if extended certificate validation is not required. If null, then this class will use its own validation callback function that accepts all server certificates.

    Methods

    | Edit this page View Source

    Close()

    Closes the web socket connection in an orderly manner.

    Declaration
    public void Close()
    | Edit this page View Source

    Connect(string)

    Connects to the web socket server. Messages may be sent and received if the connection was successful.

    Declaration
    public Task<bool> Connect(string strUrl)
    Parameters
    Type Name Description
    string strUrl

    URL of the web socket server to connect to. The URL scheme must be wss: or ws:

    Returns
    Type Description
    Task<bool>

    Returns true if successful or false if the connection attempt failed.

    | Edit this page View Source

    SendMessage(string)

    Sends an arbitrally long message as a string to the server. This method is thread-safe, i.e., send operations are synchronized.

    Declaration
    public Task<bool> SendMessage(string strMessage)
    Parameters
    Type Name Description
    string strMessage

    Message to be sent.

    Returns
    Type Description
    Task<bool>

    Returns true if successful. Returns false if an error occurred, probably because the connection to the server is broken.

    Events

    | Edit this page View Source

    MessageReceived

    Event that is fired when a complete message is received. It is OK to call the SendMessage() method from within the event handler of this event, but don't hold onto a reference to it and use it outside of the event handler.

    Declaration
    public event WebSocketMessageReceived MessageReceived
    Event Type
    Type Description
    WebSocketMessageReceived
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX