mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 04:52:45 +00:00 
			
		
		
		
	 1602663b9e
			
		
	
	
		1602663b9e
		
	
	
	
	
		
			
			This implementation completely ignores MessagePorts, and manually plumbs data through LocalSockets.
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			259 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			259 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| onmessage = evt => {
 | |
|     console.log("In Worker - Got message:", JSON.stringify(evt.data));
 | |
| 
 | |
|     postMessage(evt.data, null);
 | |
| };
 | |
| 
 | |
| console.log("In Worker - Loaded", this);
 | |
| console.log("Keys: ", JSON.stringify(Object.keys(this)));
 | |
| 
 | |
| postMessage("loaded", null);
 |