https://github.com/zaneh/streamlabs-producer
Proof of concept using Go + RabbitMQ to read from Streamlabs socket in a scalable way.
https://github.com/zaneh/streamlabs-producer
go golang rabbitmq streamlabs streamlabs-socket
Last synced: about 1 year ago
JSON representation
Proof of concept using Go + RabbitMQ to read from Streamlabs socket in a scalable way.
- Host: GitHub
- URL: https://github.com/zaneh/streamlabs-producer
- Owner: ZaneH
- License: unlicense
- Created: 2023-11-28T03:13:46.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-30T08:43:36.000Z (over 2 years ago)
- Last Synced: 2025-02-02T17:56:05.803Z (over 1 year ago)
- Topics: go, golang, rabbitmq, streamlabs, streamlabs-socket
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Streamlabs Producer
Connects to the [Streamlabs Socket API](https://dev.streamlabs.com/docs/socket-api) to parse incoming events and sends them to a queue.
The events are never consumed in this proof of concept.
## Usage
```bash
$ git clone https://github.com/ZaneH/streamlabs-producer.git
$ cd streamlabs-producer
$ go mod download
$ export STREAMLABS_SOCKET_TOKEN= # required
$ docker run --rm -d \
--hostname my-rabbit \
--name streamaze-rabbit \
-p 15672:15672 \
-p 5672:5672 \
rabbitmq:3-management # run a temporary RabbitMQ container
$ go run cmd/socketrabbit.go
```
You can navigate to the [Streamlabs Alert Box page](https://streamlabs.com/dashboard#/alertbox)
to test the connection. You should see the events being printed to the console.
Navigate to `localhost:15672` to see the RabbitMQ management console. The default
username and password are both `guest`. You should be able to see the queue
`frontend.consumer.1` and the messages that were sent to it.