mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-01-15 18:41: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 {
|
||||
// TODO: do this nicer?
|
||||
const message = {'key': key};
|
||||
if (data) {
|
||||
message['data'] = data;
|
||||
}
|
||||
if (trigger) {
|
||||
message['trigger'] = trigger;
|
||||
}
|
||||
if (data) { message['data'] = data; }
|
||||
if (trigger) { message['trigger'] = trigger; }
|
||||
this.uplink.next(message);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user