Fixed race condition on socket acknowledge callback. Fixed naming on socket methods. Added error handling on socket messages.

This commit is contained in:
Håvar Aambø Fosstveit committed 2019-10-28 11:45:37 +01:00
1 parent bb8cf02c23
commit c81b377723
7 files changed
+438 -414

No files matched your search

+6 -2
View File
@@ -70,7 +70,9 @@ const Lobby = ({
case 'Escape':
{
if (displayName === '')
changeDisplayName('Guest');
roomClient.changeDisplayName('Guest');
else
roomClient.changeDisplayName(displayName);
break;
}
default:
@@ -111,7 +113,9 @@ const Lobby = ({
onBlur={() =>
{
if (displayName === '')
changeDisplayName('Guest');
roomClient.changeDisplayName('Guest');
else
roomClient.changeDisplayName(displayName);
}}
margin='normal'
/>