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
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.
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