mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 14:22:43 +00:00 
			
		
		
		
	 62ed26164b
			
		
	
	
		62ed26164b
		
	
	
	
	
		
			
			The WebSocket service isolates communication with a WebSocket to its own isolated process. Similar to other isolating services, it has its own user and group.
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			346 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			346 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| endpoint WebSocketClient
 | |
| {
 | |
|     // Connection API
 | |
|     Connected(i32 connection_id) =|
 | |
|     Received(i32 connection_id, bool is_text, ByteBuffer data) =|
 | |
|     Errored(i32 connection_id, i32 message) =|
 | |
|     Closed(i32 connection_id, u16 code, String reason, bool clean) =|
 | |
| 
 | |
|     // Certificate requests
 | |
|     CertificateRequested(i32 connection_id) =|
 | |
| }
 |