Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client side socket code for step-2 backend #19

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sarvasvaKhare
Copy link
Contributor

prepared a basic event emitter and listeners list for socket communication in a room . I request the person at the frontend side to use these events. for simplicity i have use document.write for checking its functionality kindly replace it with a proper code. some emitter like gameStart requires a button for activation kindly add the this event onclickhandler of that button.
I have make sure that there is no misunderstanding with what a particular event listener or emitter does. Still if you do not understand something feel free to connect.

@sarvasvaKhare
Copy link
Contributor Author

the same problem goes here too. I wanted to seperate socket code in test.ejs into a seperate file and use script src for it but the io object used to create socket is created by script above it so it needs to be on same file.

@sarvasvaKhare
Copy link
Contributor Author

https://sarvasvakhare-bluff.herokuapp.com/

heroku deployed app

@sarvasvaKhare
Copy link
Contributor Author

ADDED EVENT FOR SHUFFLING OF CARDS IN USERS'S HAND

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant