Expose JSON sending method in weboscketservice

This commit is contained in:
Kristóf Tóth 2018-04-10 14:24:57 +02:00
parent 438138adc5
commit b6b647dc21

View File

@ -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);
}
}