Fix joining game as phone

The name was not changed over to use ID
This commit is contained in:
Liam Westby 2018-03-13 16:35:45 -05:00
parent d365c20b22
commit 6312c67d34

View File

@ -110,7 +110,7 @@ export class ControlsComponent implements OnInit {
onConnect(evt: MessageEvent) {
const name = sessionStorage.getItem('username');
this.gameSocket.sendText(JSON.stringify({ playerjoined: name }));
this.gameSocket.sendText(JSON.stringify({ 'playerjoined': sessionStorage.getItem('userId') }));
}
onMessage(evt: MessageEvent) {