Skip to content

Web-Socket. Found Empire #10

Description

@icydee

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions