Skip to content

Commit

Permalink
updating readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tanneberger committed Sep 9, 2022
1 parent 4d5cd1b commit 5ec4332
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
17 changes: 15 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
# funnel
Service which filters and sends out data to all listening clients
# Funnel

![built with nix](https://builtwithnix.org/badge.svg)

Service which filters and sends out data to all listening clients over websockets. This service expects the data to be sent over grpc.

## Configuration

### Environment

- **GRPC_PORT**: mendatory under which the grpc server runs
- **WEBSOCKET_PORT**: mendatory under which port the websocket port runs



2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
int main() {
try {
std::cout << "GRPC_PORT:" << std::getenv("GRPC_PORT") << std::endl;
std::cout << "GRPC_WEBSOCKET:" << std::getenv("WEBSOCKET_PORT") << std::endl;
std::cout << "WEBSOCKET_PORT:" << std::getenv("WEBSOCKET_PORT") << std::endl;
unsigned short grpc_port = static_cast<unsigned short>(std::stoi(std::getenv("GRPC_PORT")));
unsigned short websocket_port = static_cast<unsigned short>(std::stoi(std::getenv("WEBSOCKET_PORT")));

Expand Down

0 comments on commit 5ec4332

Please sign in to comment.