
The Bet Share module is a centralized hub for sharing and discovering bets within Virtual Stadium. It allows users to view all shared bets, contribute new ones, and revisit their previously shared bets. This feature enhances community engagement and provides social betting experiences.
The Bet Share module enables:
This module requires adapter integration to function properly and provide betting data.
The Bet Share feature requires adapter integration to function properly. See the appropriate adapter type based on your integration needs:
To enable the copy bet functionality in the shared bets, you must first integrate and configure the Copy Bet feature. For detailed implementation instructions, see the Copy Bet Feature Documentation.
The copy bet button is not visible to the user who originally shared the bet, preventing self-copying and maintaining fair betting practices.
The Bet Share module triggers various actions that can be handled through the onAction callback function for analytics and user behavior monitoring.
Triggered when a user opens the bet share list interface.
type string required
Action type: "BetslipShareListOpen".
data object required
Action data containing channel information.
data.channelId string required
Unique identifier of the chat channel.
Triggered when a user closes the bet share list interface.
type string required
Action type: "BetslipShareListClose".
data object required
Action data with scope information.
data.channelId string required
Unique identifier of the chat channel.
data.scope string required
Scope identifier: "chat:betshare:list".
Triggered when a user clicks the back button within the bet share interface.
type string required
Action type: "BetslipShareListBack".
data object required
Action data containing channel information.
data.channelId string required
Unique identifier of the chat channel.
Triggered when a user attempts to open bet share but the feature is disabled.
type string required
Action type: "BetslipShareListDisabled".
data object required
Action data containing channel information.
data.channelId string required
Unique identifier of the chat channel.
Handling Bet Share Actions:
// Configure onAction callback to handle bet share events
SIR('addWidget', '#virtual-stadium-container', 'virtualStadium', {
jwt: 'your-jwt-token',
channelId: 'your-channel-id',
onAction: function(action) {
switch(action.type) {
case 'BetslipShareListOpen':
// Optional: Log for debugging
// console.log('Bet share list opened for channel:', action.data.channelId);
// Track analytics event
analytics.track('bet_share_opened', {
channelId: action.data.channelId
});
break;
case 'BetslipShareListClose':
// Optional: Log for debugging
// console.log('Bet share list closed for channel:', action.data.channelId);
// Track analytics event
analytics.track('bet_share_closed', {
channelId: action.data.channelId,
scope: action.data.scope
});
break;
case 'BetslipShareListBack':
// Optional: Log for debugging
// console.log('User navigated back in bet share');
// Track analytics event
analytics.track('bet_share_back', {
channelId: action.data.channelId
});
break;
case 'BetslipShareListDisabled':
// Optional: Log for debugging
// console.log('Bet share attempted but disabled');
// Track analytics event
analytics.track('bet_share_disabled', {
channelId: action.data.channelId
});
break;
}
}
});shareNewBetButtonPosition 'top' | 'bottom' optional
Controls position of the "Share New Bet" button. Default is 'top'.


Share New Bet Button Position Configuration:
// Configure the position of the share new bet button
SIR('addWidget', '#virtual-stadium-container', 'virtualStadium', {
jwt: 'your-jwt-token',
channelId: 'your-channel-id',
shareNewBetButtonPosition: 'bottom' // or 'top'
});