SRServerSentEventsTransport Class Reference
Inherits from | SRHttpBasedTransport : NSObject |
Declared in | SRServerSentEventsTransport.h |
Overview
SRServerSentEventsTransport
object provides support for using Server-Sent Events when communicating with a SignalR Server.
SRServerSentEvents makes an HTTP Get Request with transport=“serverSentEvents” SRServerSentEventsTransport
will keep this connection open until it receives a timeout message from the server
once the timeout is received SRServerSentEventsTransport
will attempt a reconnect after waiting for 2 seconds
Important: a client side timeout will occur after 240 seconds, it is important that the ReconnectTimeout defined in DefaultConfigurationManager.cs on the server does not exceed 240 seconds If a client side timeout occurs before the server side timeout SRServerSentEvents transport will not reconnect
Tasks
Properties
-
connectionTimeout
Returns an
propertyNSInteger
object with the amount of time in seconds to wait for successful transport initialization