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

Change socket to recognize current viewport and filter players on that #113

Merged

Conversation

erickcelio
Copy link

Description

I made a validation on socket event when verifying players valid based on player and viewport x,y and pass those players to the broadcast event.

Related Issue

#27

Motivation and Context

This resolve chat local issue, before, all users connected will see the sent message, now just the players inside the sender viewport can do that.

How Has This Been Tested?

Q&A (manual testing)

Screenshots (if appropriate):

Types of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

@naknode naknode merged commit cedd161 into delaford:master Dec 18, 2019
@naknode naknode added backend Node.js-related or anything to do in the server enhancement When functionality needs to be changed or updated. medium priority It would be awesome if this was done, but not very critical. web socket WebSocket issues and discussion. labels Dec 18, 2019
@naknode naknode added this to To Do in Core Engine via automation Dec 18, 2019
@naknode naknode added this to the v0.1.0 milestone Dec 18, 2019
@naknode naknode moved this from To Do to Done in Core Engine Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Node.js-related or anything to do in the server enhancement When functionality needs to be changed or updated. medium priority It would be awesome if this was done, but not very critical. web socket WebSocket issues and discussion.
Projects
Core Engine
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants