mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-11-04 00:42:55 +00:00 
			
		
		
		
	Send necessary data in onopen
This commit is contained in:
		@@ -22,7 +22,18 @@ $('form#anchor_login_event').on('submit', (function (event) {
 | 
				
			|||||||
            function (data) {}
 | 
					            function (data) {}
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
}));
 | 
					}));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					ws.onopen = function () {
 | 
				
			||||||
 | 
					    ws.send(JSON.stringify({
 | 
				
			||||||
 | 
					        'anchor': 'reset',
 | 
				
			||||||
 | 
					        'data': ''
 | 
				
			||||||
    }));
 | 
					    }));
 | 
				
			||||||
 | 
					    // init webide
 | 
				
			||||||
 | 
					    ws.send(JSON.stringify({
 | 
				
			||||||
 | 
					        'anchor': 'anchor_webide',
 | 
				
			||||||
 | 
					        'data': ''
 | 
				
			||||||
 | 
					    }));
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ws.onmessage = function (messageEvent) {
 | 
					ws.onmessage = function (messageEvent) {
 | 
				
			||||||
    let message = JSON.parse(messageEvent.data);
 | 
					    let message = JSON.parse(messageEvent.data);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user