You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							14 lines
						
					
					
						
							320 B
						
					
					
				
			
		
		
	
	
							14 lines
						
					
					
						
							320 B
						
					
					
				package controllers | 
						|
 | 
						|
import ( | 
						|
	"net/http" | 
						|
 | 
						|
	"github.com/owncast/owncast/core" | 
						|
	"github.com/owncast/owncast/models" | 
						|
) | 
						|
 | 
						|
// Ping is fired by a client to show they are still an active viewer. | 
						|
func Ping(w http.ResponseWriter, r *http.Request) { | 
						|
	viewer := models.GenerateViewerFromRequest(r) | 
						|
	core.SetViewerActive(&viewer) | 
						|
}
 | 
						|
 |