mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-01-15 22:51:57 +00:00
Remove TODO I thought about
This commit is contained in:
parent
c69bac4e83
commit
496f997bb7
@ -41,14 +41,9 @@ export class WebSocketService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public send(key: string, data?: any, trigger?: any): void {
|
public send(key: string, data?: any, trigger?: any): void {
|
||||||
// TODO: do this nicer?
|
|
||||||
const message = {'key': key};
|
const message = {'key': key};
|
||||||
if (data) {
|
if (data) { message['data'] = data; }
|
||||||
message['data'] = data;
|
if (trigger) { message['trigger'] = trigger; }
|
||||||
}
|
|
||||||
if (trigger) {
|
|
||||||
message['trigger'] = trigger;
|
|
||||||
}
|
|
||||||
this.uplink.next(message);
|
this.uplink.next(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user