mirror of
				https://github.com/avatao-content/frontend-tutorial-framework
				synced 2025-11-04 00:42:56 +00:00 
			
		
		
		
	Expose JSON sending method in weboscketservice
This commit is contained in:
		@@ -44,6 +44,10 @@ export class WebSocketService {
 | 
			
		||||
    const message = {'key': key};
 | 
			
		||||
    if (data) { message['data'] = data; }
 | 
			
		||||
    if (trigger) { message['trigger'] = trigger; }
 | 
			
		||||
    this.uplink.next(message);
 | 
			
		||||
    this.sendJSON(message);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  public sendJSON(json: any) {
 | 
			
		||||
    this.uplink.next(json);
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user