Click or drag to resize

ILiveFeedsSubscribe Method

Subscribe to specified events.

Namespace: Sportradar.SDK.FeedProviders.Common
Assembly: FeedProviderCommon (in FeedProviderCommon.dll) Version: 2.28.0.0
Syntax
C#
void Subscribe(
	IEnumerable<long> event_ids
)

Parameters

event_ids  IEnumerableInt64
Array of event ids
Remarks

LiveOdds: If successful and you have "Enable response on register and unregister requests" enabled in the XML config, then expect [!:Sportradar.SDK.FeedProviders.LiveOdds.ILiveOdds.OnMetaInfo] message with [!:Sportradar.SDK.FeedProviders.LiveOdds.OddsReplyType] = "register" in response.

LiveScout: Expect [!:Sportradar.SDK.FeedProviders.LiveScout.ILiveScout.OneventUpdate] message is response. If event subscription is successful, a full match update is sent out. Otherwise explanation will be given in the response message (e.g. you do not have access to the match or there are already two open subscriptions for the event).

With LiveOdds you will automatically receive interesting updates and you should not Subscribe() unless you explicitly called Unsubscribe(IEnumerableInt64) manually for that event before.

With LiveScout you must explicitly call Subscribe() at start-up or no data will be received.

See Also