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

Web-Socket. Found Empire #10

Open
icydee opened this issue Jul 27, 2016 · 0 comments
Open

Web-Socket. Found Empire #10

icydee opened this issue Jul 27, 2016 · 0 comments

Comments

@icydee
Copy link
Member

icydee commented Jul 27, 2016

Create a new web-socket module for Empire calls. 'KA::WebSocket::Empire'

An example of a similar module is 'KA::WebSocket::User'

The following methods should be provided on_connect, log

The method ws_found should be created to respond to the web-socket request '/empire/found'

The outline of the ws_found method is as follows.

  • Validate the client code
  • Ensure the user is logged in
  • Create a job queue entry onto the bg_empire queue giving a payload which includes the user-id of the logged in user and the route '/empire/found'.
  • return an empty hash {}

The result of this is that the web-socket call returns immediately, but a message has been put onto a message queue for a background process

@icydee icydee changed the title Found Empire Web-Socket. Found Empire Jul 27, 2016
@icydee icydee added this to the Implement some existing functions with Web-Socket calls. milestone Jul 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant