mirror of
				https://github.com/bra1n/townsquare.git
				synced 2025-10-21 16:55:12 +00:00 
			
		
		
		
	update server response
This commit is contained in:
		
							parent
							
								
									2da21282cc
								
							
						
					
					
						commit
						3a5a8bfc9a
					
				
					 1 changed files with 8 additions and 4 deletions
				
			
		|  | @ -144,10 +144,14 @@ if (process.env.NODE_ENV !== "development") { | |||
|   server.on("request", (req, res) => { | ||||
|     res.writeHead(200); | ||||
|     res.end( | ||||
|       JSON.stringify({ | ||||
|         players: wss.clients.size, | ||||
|         channels: Object.keys(channels).length | ||||
|       }) | ||||
|       `# HELP players_concurrent Concurrent players
 | ||||
| # TYPE players_concurrent gauge | ||||
| players_concurrent{app="clocktower-online"} ${wss.clients.size} | ||||
| 
 | ||||
| # HELP channels_concurrent Concurrent channels | ||||
| # TYPE channels_concurrent gauge | ||||
| channels_concurrent{app="clocktower-online"} ${Object.keys(channels).length} | ||||
| ` | ||||
|     ); | ||||
|   }); | ||||
| } | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue