mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 03:02:45 +00:00 
			
		
		
		
	 6e19ab2bbc
			
		
	
	
		6e19ab2bbc
		
	
	
	
	
		
			
			We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
		
			
				
	
	
		
			13 lines
		
	
	
	
		
			378 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
	
		
			378 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #include <AK/URL.h>
 | |
| 
 | |
| 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, DeprecatedString reason, bool clean) =|
 | |
| 
 | |
|     // Certificate requests
 | |
|     certificate_requested(i32 connection_id) =|
 | |
| }
 |