Class: Arkaan::Monitoring::Websocket
- Inherits:
-
Object
- Object
- Arkaan::Monitoring::Websocket
- Includes:
- Concerns::Activable, Concerns::Diagnosticable, Mongoid::Document, Mongoid::Timestamps
- Defined in:
- lib/arkaan/monitoring/websocket.rb
Overview
The websocket is a particular kind of service, just like the gateway. It always has the same signature. A websocket document is a particular instance of websocket, located on a server and answering to a URL.
Instance Attribute Summary collapse
-
#creator ⇒ Arkaan::Account
The account that created this web socket instance in the database.
-
#url ⇒ String
The URL of the websocket to be contacted on.
Instance Attribute Details
#creator ⇒ Arkaan::Account
Returns the account that created this web socket instance in the database.
18 |
# File 'lib/arkaan/monitoring/websocket.rb', line 18 belongs_to :creator, class_name: 'Arkaan::Account', inverse_of: :web_sockets, optional: true |
#url ⇒ String
Returns the URL of the websocket to be contacted on.
14 |
# File 'lib/arkaan/monitoring/websocket.rb', line 14 field :url, type: String |