# WebSockets
Source: https://docs.pally.gg/advanced/websockets
Access a direct feed of your support payments with WebSockets.
Our WebSockets feed is currently in Beta and subject to changes. We do our best to make backwards compatible changes. If you have questions or feedback, please contact us at [support@pally.gg](mailto:support@pally.gg).
## Overview
WebSockets give creators a direct feed of the support payments that are left on their pages. Once a Support Payment is processed, a simple payload is pushed to your WebSocket connection so you can handle it in real-time.
## Setup
### 1. Get an API key
You can get an API key under [API Keys on your dashboard](https://pally.gg/dashboard/settings/api-keys).
We recommend creating a new API key for each integration or service you use. This way, you can easily revoke access to a specific service without affecting others.
API keys are private and should never be made public.
### 2. Connect to a feed
You can use [websocketking.com](https://websocketking.com/) to test WebSocket connections.
You can connect to a real-time feed with the API key above using one of the following URLs:
#### Firehose
The firehose feed sends all support payments for all pages you own.
```text Firehose Feed theme={null}
wss://events.pally.gg?auth=YOUR_API_KEY&channel=firehose
```
#### Page Activity Feed
The activity feed sends all support payments for a specific page you own or have access to.
```text Page Activity Feed theme={null}
wss://events.pally.gg?auth=YOUR_API_KEY&channel=activity-feed&room=PAGE_SLUG
```
### 3. Keep your connection alive
With WebSockets, events are only sent/received when a connection is open. We only send events once to all open WebSocket connections after the payment is received.
To ensure you receive the events, there are several ways to make sure your connection stays alive:
1. Implement retry and reconnect mechanisms in your client.
2. Send a simple `ping` message every 60 seconds to keep the connection alive. The server should respond with `pong`.
## Events
The event payload may contain additional/undocumented fields but will always contain the documented fields.
### campaigntip.notify
Sent when a new support payment is received for a page you own or when a support payment is [replayed from the activity feed](/features/activity-feed#replay-tip-alerts).
```json theme={null}
{
"type": "campaigntip.notify",
"payload": {
"campaignTip": {
"createdAt": "2024-03-13T18:02:33.743Z",
"displayName": "Someone",
"grossAmountInCents": 500,
"id": "b1w2pjwjtb9fx0v1se9ex4n2",
"message": "",
"netAmountInCents": 500,
"processingFeeInCents": 0,
"updatedAt": "2024-03-13T18:02:33.743Z"
},
"page": {
"id": "1627451579049x550722173620715500",
"slug": "pally",
"title": "Pally.gg's Team Page",
"url": "https://pally.gg/p/pally"
}
}
}
```
## Testing
You can test receiving events by sending an echo message to an open WebSocket connection. The server will respond by sending the payload of the message back.
Below is an example of an echo message that can be sent to test receiving a `campaigntip.notify` event.
This example is formatted but should be sent as a **string**. It can be pasted in [websocketking.com](https://websocketking.com/) but would be surrounded in quotes in code.
```json theme={null}
{
"type": "echo",
"payload": {
"type": "campaigntip.notify",
"payload": {
"campaignTip": {
"createdAt": "2024-03-13T18:02:33.743Z",
"displayName": "Someone",
"grossAmountInCents": 500,
"id": "b1w2pjwjtb9fx0v1se9ex4n2",
"message": "",
"netAmountInCents": 500,
"processingFeeInCents": 0,
"updatedAt": "2024-03-13T18:02:33.743Z"
},
"page": {
"id": "1627451579049x550722173620715500",
"slug": "pally",
"title": "Pally.gg's Team Page",
"url": "https://pally.gg/p/pally"
}
}
}
}
```
# Activity Feed
Source: https://docs.pally.gg/features/activity-feed
Every Pally.gg page has a real-time activity feed of support payments that can be accessed by team members.
## Access
Pages must be published and you must be a team member to access the activity feed. You can then access your page's activity feed by going to:
```text theme={null}
https://pally.gg/embed/activity-feed/PAGE_SLUG
```
The activity feed is an authenticated page and requires you to be signed in to view.
## Usage
The activity feed is commonly embedded in software like [OBS Studio](https://obsproject.com/) to for quick access while streaming. You can also just keep it open in a browser window.
Because the activity feed is an authenticated page, you need to sign in when using a Browser Source in OBS. You can do this by right clicking the browser source and choosing "Interact".
### Real-time Updates
The activity feed updates in real-time as support payments are received.
### Replay Support Alerts
You or your team can replay support alerts by clicking the "Replay Alert" button on the support event.
This will re-broadcast the support payment to all notification channels, including: Support Alert Overlays, Twitch (if connected), and all [WebSockets](/developers/websockets#campaigntip-notify) connected to the correct channel.
# Support Alert Overlay
Source: https://docs.pally.gg/features/support-alert
Easily display real-time support alerts on your stream with a customizable overlay.
## Setup
You can add the support alert overlay to your stream using the following URL as a browser source in streaming software like OBS Studio, Meld, or XSplit.
```text theme={null}
https://pally.gg/embed/tip-alerts/ALERT_OVERLAY_ID
```
You can find the full URL to your alert overlay in the tip alerts integration section of the page on your [Pally.gg dashboard](https://pally.gg/dashboard).
For best results in OBS Studio and similar software, we recommend setting the
browser source size to 960x600 pixels.
## Configuration
Customize your support alert overlay with these options:
* `title template`: configure the title text shown on the alert overlay using the following variables: `{{name}}`, `{{amount}}`.
* `show support messages`: turn this on/off to show/hide the message sent along with the support payment.
* `title and message color configuration`: Configure the color of the title and message text and their shadow.
* `sound volume`: Set alert sound volume (0-100%).
* `custom sound`: Set a custom sound to play when an alert is triggered (mp3 or wav up to 1MB).
* `display image`: Set whether an image should be shown with the overlay.
* `custom image`: Set a custom image to be shown with the overlay (jpeg, png, or gif up to 5MB).
## Usage in OBS
1. In OBS, add a new Browser Source.
2. Kepp "Local file" un-checked and paste the URL you got from your page dashboard.
3. Set width to 960 and height to 600
4. Click OK to save
## Troubleshooting
The support alert overlay requires an active internet connection to receive
real-time updates. Make sure your streaming PC has a stable connection.
* If outdated settings (image, sound, etc.) are showing, make sure to refresh the page/source to load the latest changes.
* Check that your streaming software has internet access
* Verify the URL is correct
If you are still facing issues, please reach out to [Pally's support team](mailto:support@pally.gg).
## Advanced Integration Options
For advanced integration options, check out our [Advanced Documentation](/advanced).
# Brand Assets
Source: https://docs.pally.gg/get-started/brand-assets
Below are logos, buttons, and panels that can be used to promote your Pally.gg page.
## Buttons
## Panels
Great for Twitch channels!
## Logos
[Download assets below](#download) to get .svg versions for more flexibility.
## Download
Includes all buttons, panels, and logos (png and svg).
# Campaigns
Source: https://docs.pally.gg/get-started/campaigns
Pally.gg campaigns are where you manage your splits, goals, and various support payment settings.
## Overview
Campaigns are how you manage your splits, goals, and various support payment settings.
Currently, every page is setup with a default campaign.
We're working on allowing multiple campaigns per page and would love to [hear your feedback](https://roadmap.pally.gg/c/9-better-campaigns).
## Invite your team
Inviting your team to your campaign is easy! You get a shareable URL that is unique to your campaign
and good for up to 7 days. Your team members just sign up or sign in with the link provided.
You can refresh the link at any time to get a new invite link - note: this changes the invite-code
and the old link will no longer work.
## Splitting support payments
Splits are how you share support payments with your team. You can add up to **50 team members** to your campaign to
share support payments.
### How it works
At the time a support payment is **received**, the payment is allocated to team members with **verified payout accounts** based
on how the percent they are configured to receive.
If there are team members with **unverified payout accounts**, their share is allocated to the rest of the team
based on the rest of the support payment splits.
## Setting up goals
Goals control the progress bar displayed on your page as well as provide an embed link to be used
as an overlay for software like [OBS Studio](https://obsproject.com/).
As you can see above, you can customize the amounts, colors, and labels for your goals.
**More customization options are coming soon!**
## Additional settings
There are several additional configuration options for your campaign to fine-tune your experience.
* **Leaderboard**: Controls whether or not you want to display monthly top contributors on your page.
* **Anonymous supporter names**: Allows you to hide the names of supporters on your page. This can be
usefuly for adding additional moderation control to your page.
* **Supporter messages**: Allows you to disable the ability for supporters to leave messages.
* **Display support amounts**: Allows you to hide the amounts of support payments on your page.
* **Display individual payment splits**: Allows you to show per team member split % or group by "Team" and "Owner".
* **Minimum support amount**: Allows you to set a minimum support amount for your page.
* **Minimum support amount for messages**: Gives an additional control to require a minimum support amount to leave a
message on your page.
* **Suggested support amounts**: Controls the 4 default options for suggested support amounts on your page.
# Introduction
Source: https://docs.pally.gg/get-started/introduction
Pally.gg handles payments, chargebacks, payouts, and sharing support payments with your team so you can focus on what you do best – creating.
## Learn
Your activity feed is a real-time feed of support payments to your page.
Campaigns are how you manage your splits, goals, and various support payment settings.
## For Creators
Download Pally.gg brand assets to promote your page.
Set up real-time alerts for support payments on your stream.
## For Power users
Access a direct feed of your support payments with WebSockets.