mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:52:44 +00:00 
			
		
		
		
	 d4a890080d
			
		
	
	
		d4a890080d
		
	
	
	
	
		
			
			NewAKString is effectively the default for any new IDL interface, so let's mark this as the default behavior. It also makes it much easier to figure out whatever interfaces are still left to port over to new AK String.
		
			
				
	
	
		
			29 lines
		
	
	
	
		
			977 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
	
		
			977 B
		
	
	
	
		
			Text
		
	
	
	
	
	
| #import <DOM/EventTarget.idl>
 | |
| #import <DOM/EventHandler.idl>
 | |
| 
 | |
| // https://websockets.spec.whatwg.org/#websocket
 | |
| [Exposed=(Window,Worker)]
 | |
| interface WebSocket : EventTarget {
 | |
| 
 | |
|     constructor(USVString url, optional (DOMString or sequence<DOMString>) protocols);
 | |
| 
 | |
|     readonly attribute USVString url;
 | |
| 
 | |
|     const unsigned short CONNECTING = 0;
 | |
|     const unsigned short OPEN = 1;
 | |
|     const unsigned short CLOSING = 2;
 | |
|     const unsigned short CLOSED = 3;
 | |
|     readonly attribute unsigned short readyState;
 | |
|     // readonly attribute unsigned long long bufferedAmount;
 | |
| 
 | |
|     attribute EventHandler onopen;
 | |
|     attribute EventHandler onerror;
 | |
|     attribute EventHandler onclose;
 | |
|     readonly attribute DOMString extensions;
 | |
|     readonly attribute DOMString protocol;
 | |
|     undefined close(optional unsigned short code, optional USVString reason);
 | |
| 
 | |
|     attribute EventHandler onmessage;
 | |
|     attribute DOMString binaryType;
 | |
|     undefined send((BufferSource or Blob or USVString) data);
 | |
| };
 |