Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
added doc about new endpoint for checking number of clients currently…
Browse files Browse the repository at this point in the history
… connected
  • Loading branch information
itzmeanjan committed Feb 18, 2021
1 parent d7b5fda commit ee91d9a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,13 @@ curl -s localhost:7000/v1/synced | jq
}
```

- You can check how many active websocket sessions being managed by your `ette` deployment by


```bash
curl -s localhost:7000/v1/stat | jq
```

---

### Production deployment of `ette` using **systemd**
Expand Down
2 changes: 1 addition & 1 deletion app/rest/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -1166,7 +1166,7 @@ func RunHTTPServer(_db *gorm.DB, _status *d.StatusHolder, _redisClient *redis.Cl
// Log it when closing connection
defer func() {

log.Printf("[+] Closing websocket connection [ Read : %d | Write : %d ]\n", sendReceiveCounter.Receive, sendReceiveCounter.Send)
log.Printf("[] Closing websocket connection [ Read : %d | Write : %d ]\n", sendReceiveCounter.Receive, sendReceiveCounter.Send)

}()

Expand Down

0 comments on commit ee91d9a

Please sign in to comment.