<!DOCTYPE html>

<html>
<head>
<meta charset="UTF-8">

<title>cable.js - RDoc Documentation</title>

<script type="text/javascript">
  var rdoc_rel_prefix = "../../../";
</script>

<script src="../../../js/jquery.js"></script>
<script src="../../../js/darkfish.js"></script>

<link href="../../../css/fonts.css" rel="stylesheet">
<link href="../../../css/rdoc.css" rel="stylesheet">



<body id="top" role="document" class="file">
<nav role="navigation">
  <div id="project-navigation">
    <div id="home-section" role="region" title="Quick navigation" class="nav-section">
  <h2>
    <a href="../../../index.html" rel="home">Home</a>
  </h2>

  <div id="table-of-contents-navigation">
    <a href="../../../table_of_contents.html#pages">Pages</a>
    <a href="../../../table_of_contents.html#classes">Classes</a>
    <a href="../../../table_of_contents.html#methods">Methods</a>
  </div>
</div>

    <div id="search-section" role="search" class="project-section initially-hidden">
  <form action="#" method="get" accept-charset="utf-8">
    <div id="search-field-wrapper">
      <input id="search-field" role="combobox" aria-label="Search"
             aria-autocomplete="list" aria-controls="search-results"
             type="text" name="search" placeholder="Search" spellcheck="false"
             title="Type to search, Up and Down to navigate, Enter to load">
    </div>

    <ul id="search-results" aria-label="Search Results"
        aria-busy="false" aria-expanded="false"
        aria-atomic="false" class="initially-hidden"></ul>
  </form>
</div>

  </div>

  

  <div id="project-metadata">
    <div id="fileindex-section" class="nav-section">
  <h3>Pages</h3>

  <ul class="link-list">
  
    <li><a href="../../../Gemfile.html">Gemfile</a>
  
    <li><a href="../../../Gemfile_lock.html">Gemfile.lock</a>
  
    <li><a href="../../../Installation_guide_md.html">Installation_guide</a>
  
    <li><a href="../../../Procfile.html">Procfile</a>
  
    <li><a href="../../../README_md.html">README</a>
  
    <li><a href="../../../Rakefile.html">Rakefile</a>
  
    <li><a href="../../../app/assets/config/manifest_js.html">manifest.js</a>
  
    <li><a href="../../../app/assets/javascripts/application_js.html">application.js</a>
  
    <li><a href="../../../app/assets/javascripts/assignments_coffee.html">assignments.coffee</a>
  
    <li><a href="../../../app/assets/javascripts/cable_js.html">cable.js</a>
  
    <li><a href="../../../app/assets/javascripts/channels/cluster_coffee.html">cluster.coffee</a>
  
    <li><a href="../../../app/assets/javascripts/clusters_coffee.html">clusters.coffee</a>
  
    <li><a href="../../../app/assets/javascripts/groups_coffee.html">groups.coffee</a>
  
    <li><a href="../../../app/assets/javascripts/infrastructures_coffee.html">infrastructures.coffee</a>
  
    <li><a href="../../../app/assets/javascripts/pages_coffee.html">pages.coffee</a>
  
    <li><a href="../../../app/assets/javascripts/sessions_coffee.html">sessions.coffee</a>
  
    <li><a href="../../../app/assets/javascripts/tasks_coffee.html">tasks.coffee</a>
  
    <li><a href="../../../app/assets/javascripts/users_coffee.html">users.coffee</a>
  
    <li><a href="../../../app/assets/stylesheets/application_css.html">application.css</a>
  
    <li><a href="../../../app/assets/stylesheets/assignments_scss.html">assignments.scss</a>
  
    <li><a href="../../../app/assets/stylesheets/cluster_scss.html">cluster.scss</a>
  
    <li><a href="../../../app/assets/stylesheets/custom_scss.html">custom.scss</a>
  
    <li><a href="../../../app/assets/stylesheets/groups_scss.html">groups.scss</a>
  
    <li><a href="../../../app/assets/stylesheets/infrastructures_scss.html">infrastructures.scss</a>
  
    <li><a href="../../../app/assets/stylesheets/pages_scss.html">pages.scss</a>
  
    <li><a href="../../../app/assets/stylesheets/sb-admin-2_scss.html">sb-admin-2.scss</a>
  
    <li><a href="../../../app/assets/stylesheets/sessions_scss.html">sessions.scss</a>
  
    <li><a href="../../../app/assets/stylesheets/tasks_scss.html">tasks.scss</a>
  
    <li><a href="../../../app/assets/stylesheets/users_scss.html">users.scss</a>
  
    <li><a href="../../../app/views/clusters/render_form_js_coffee.html">render_form.js.coffee</a>
  
    <li><a href="../../../config_ru.html">config.ru</a>
  
    <li><a href="../../../db/test_sqlite3.html">test.sqlite3</a>
  
    <li><a href="../../../log/development_log.html">development.log</a>
  
    <li><a href="../../../log/test_log.html">test.log</a>
  
    <li><a href="../../../public/404_html.html">404.html</a>
  
    <li><a href="../../../public/422_html.html">422.html</a>
  
    <li><a href="../../../public/500_html.html">500.html</a>
  
    <li><a href="../../../public/apple-touch-icon-precomposed_png.html">apple-touch-icon-precomposed.png</a>
  
    <li><a href="../../../public/apple-touch-icon_png.html">apple-touch-icon.png</a>
  
    <li><a href="../../../public/favicon_ico.html">favicon.ico</a>
  
    <li><a href="../../../public/robots_txt.html">robots</a>
  
    <li><a href="../../../tmp/restart_txt.html">restart</a>
  
    <li><a href="../../../vendor/assets/javascripts/bootstrap-sprockets_js.html">bootstrap-sprockets.js</a>
  
    <li><a href="../../../vendor/assets/javascripts/bootstrap_js.html">bootstrap.js</a>
  
    <li><a href="../../../vendor/assets/javascripts/bootstrap_min_js.html">bootstrap.min.js</a>
  
    <li><a href="../../../vendor/assets/javascripts/bootstrap/affix_js.html">affix.js</a>
  
    <li><a href="../../../vendor/assets/javascripts/bootstrap/alert_js.html">alert.js</a>
  
    <li><a href="../../../vendor/assets/javascripts/bootstrap/button_js.html">button.js</a>
  
    <li><a href="../../../vendor/assets/javascripts/bootstrap/carousel_js.html">carousel.js</a>
  
    <li><a href="../../../vendor/assets/javascripts/bootstrap/collapse_js.html">collapse.js</a>
  
    <li><a href="../../../vendor/assets/javascripts/bootstrap/dropdown_js.html">dropdown.js</a>
  
    <li><a href="../../../vendor/assets/javascripts/bootstrap/modal_js.html">modal.js</a>
  
    <li><a href="../../../vendor/assets/javascripts/bootstrap/popover_js.html">popover.js</a>
  
    <li><a href="../../../vendor/assets/javascripts/bootstrap/scrollspy_js.html">scrollspy.js</a>
  
    <li><a href="../../../vendor/assets/javascripts/bootstrap/tab_js.html">tab.js</a>
  
    <li><a href="../../../vendor/assets/javascripts/bootstrap/tooltip_js.html">tooltip.js</a>
  
    <li><a href="../../../vendor/assets/javascripts/bootstrap/transition_js.html">transition.js</a>
  
    <li><a href="../../../vendor/datatables-plugins/dataTables_bootstrap_css.html">dataTables.bootstrap.css</a>
  
    <li><a href="../../../vendor/datatables-plugins/dataTables_bootstrap_js.html">dataTables.bootstrap.js</a>
  
    <li><a href="../../../vendor/datatables-plugins/dataTables_bootstrap_min_js.html">dataTables.bootstrap.min.js</a>
  
    <li><a href="../../../vendor/datatables-plugins/index_html.html">index.html</a>
  
    <li><a href="../../../vendor/datatables-responsive/dataTables_responsive_css.html">dataTables.responsive.css</a>
  
    <li><a href="../../../vendor/datatables-responsive/dataTables_responsive_js.html">dataTables.responsive.js</a>
  
    <li><a href="../../../vendor/datatables-responsive/dataTables_responsive_scss.html">dataTables.responsive.scss</a>
  
    <li><a href="../../../vendor/datatables/css/dataTables_bootstrap_css.html">dataTables.bootstrap.css</a>
  
    <li><a href="../../../vendor/datatables/css/dataTables_bootstrap_min_css.html">dataTables.bootstrap.min.css</a>
  
    <li><a href="../../../vendor/datatables/css/dataTables_bootstrap4_css.html">dataTables.bootstrap4.css</a>
  
    <li><a href="../../../vendor/datatables/css/dataTables_bootstrap4_min_css.html">dataTables.bootstrap4.min.css</a>
  
    <li><a href="../../../vendor/datatables/css/dataTables_foundation_css.html">dataTables.foundation.css</a>
  
    <li><a href="../../../vendor/datatables/css/dataTables_foundation_min_css.html">dataTables.foundation.min.css</a>
  
    <li><a href="../../../vendor/datatables/css/dataTables_jqueryui_css.html">dataTables.jqueryui.css</a>
  
    <li><a href="../../../vendor/datatables/css/dataTables_jqueryui_min_css.html">dataTables.jqueryui.min.css</a>
  
    <li><a href="../../../vendor/datatables/css/dataTables_material_css.html">dataTables.material.css</a>
  
    <li><a href="../../../vendor/datatables/css/dataTables_material_min_css.html">dataTables.material.min.css</a>
  
    <li><a href="../../../vendor/datatables/css/dataTables_semanticui_css.html">dataTables.semanticui.css</a>
  
    <li><a href="../../../vendor/datatables/css/dataTables_semanticui_min_css.html">dataTables.semanticui.min.css</a>
  
    <li><a href="../../../vendor/datatables/css/dataTables_uikit_css.html">dataTables.uikit.css</a>
  
    <li><a href="../../../vendor/datatables/css/dataTables_uikit_min_css.html">dataTables.uikit.min.css</a>
  
    <li><a href="../../../vendor/datatables/css/jquery_dataTables_css.html">jquery.dataTables.css</a>
  
    <li><a href="../../../vendor/datatables/css/jquery_dataTables_min_css.html">jquery.dataTables.min.css</a>
  
    <li><a href="../../../vendor/datatables/css/jquery_dataTables_themeroller_css.html">jquery.dataTables_themeroller.css</a>
  
    <li><a href="../../../vendor/datatables/js/dataTables_bootstrap_js.html">dataTables.bootstrap.js</a>
  
    <li><a href="../../../vendor/datatables/js/dataTables_bootstrap_min_js.html">dataTables.bootstrap.min.js</a>
  
    <li><a href="../../../vendor/datatables/js/dataTables_bootstrap4_js.html">dataTables.bootstrap4.js</a>
  
    <li><a href="../../../vendor/datatables/js/dataTables_bootstrap4_min_js.html">dataTables.bootstrap4.min.js</a>
  
    <li><a href="../../../vendor/datatables/js/dataTables_foundation_js.html">dataTables.foundation.js</a>
  
    <li><a href="../../../vendor/datatables/js/dataTables_foundation_min_js.html">dataTables.foundation.min.js</a>
  
    <li><a href="../../../vendor/datatables/js/dataTables_jqueryui_js.html">dataTables.jqueryui.js</a>
  
    <li><a href="../../../vendor/datatables/js/dataTables_jqueryui_min_js.html">dataTables.jqueryui.min.js</a>
  
    <li><a href="../../../vendor/datatables/js/dataTables_material_js.html">dataTables.material.js</a>
  
    <li><a href="../../../vendor/datatables/js/dataTables_material_min_js.html">dataTables.material.min.js</a>
  
    <li><a href="../../../vendor/datatables/js/dataTables_semanticui_js.html">dataTables.semanticui.js</a>
  
    <li><a href="../../../vendor/datatables/js/dataTables_semanticui_min_js.html">dataTables.semanticui.min.js</a>
  
    <li><a href="../../../vendor/datatables/js/dataTables_uikit_js.html">dataTables.uikit.js</a>
  
    <li><a href="../../../vendor/datatables/js/dataTables_uikit_min_js.html">dataTables.uikit.min.js</a>
  
    <li><a href="../../../vendor/datatables/js/jquery_dataTables_js.html">jquery.dataTables.js</a>
  
    <li><a href="../../../vendor/datatables/js/jquery_dataTables_min_js.html">jquery.dataTables.min.js</a>
  
    <li><a href="../../../vendor/datatables/js/jquery_js.html">jquery.js</a>
  
    <li><a href="../../../vendor/flot-tooltip/jquery_flot_tooltip_js.html">jquery.flot.tooltip.js</a>
  
    <li><a href="../../../vendor/flot-tooltip/jquery_flot_tooltip_min_js.html">jquery.flot.tooltip.min.js</a>
  
    <li><a href="../../../vendor/flot-tooltip/jquery_flot_tooltip_source_js.html">jquery.flot.tooltip.source.js</a>
  
    <li><a href="../../../vendor/flot/excanvas_js.html">excanvas.js</a>
  
    <li><a href="../../../vendor/flot/excanvas_min_js.html">excanvas.min.js</a>
  
    <li><a href="../../../vendor/flot/jquery_colorhelpers_js.html">jquery.colorhelpers.js</a>
  
    <li><a href="../../../vendor/flot/jquery_flot_canvas_js.html">jquery.flot.canvas.js</a>
  
    <li><a href="../../../vendor/flot/jquery_flot_categories_js.html">jquery.flot.categories.js</a>
  
    <li><a href="../../../vendor/flot/jquery_flot_crosshair_js.html">jquery.flot.crosshair.js</a>
  
    <li><a href="../../../vendor/flot/jquery_flot_errorbars_js.html">jquery.flot.errorbars.js</a>
  
    <li><a href="../../../vendor/flot/jquery_flot_fillbetween_js.html">jquery.flot.fillbetween.js</a>
  
    <li><a href="../../../vendor/flot/jquery_flot_image_js.html">jquery.flot.image.js</a>
  
    <li><a href="../../../vendor/flot/jquery_flot_js.html">jquery.flot.js</a>
  
    <li><a href="../../../vendor/flot/jquery_flot_navigate_js.html">jquery.flot.navigate.js</a>
  
    <li><a href="../../../vendor/flot/jquery_flot_pie_js.html">jquery.flot.pie.js</a>
  
    <li><a href="../../../vendor/flot/jquery_flot_resize_js.html">jquery.flot.resize.js</a>
  
    <li><a href="../../../vendor/flot/jquery_flot_selection_js.html">jquery.flot.selection.js</a>
  
    <li><a href="../../../vendor/flot/jquery_flot_stack_js.html">jquery.flot.stack.js</a>
  
    <li><a href="../../../vendor/flot/jquery_flot_symbol_js.html">jquery.flot.symbol.js</a>
  
    <li><a href="../../../vendor/flot/jquery_flot_threshold_js.html">jquery.flot.threshold.js</a>
  
    <li><a href="../../../vendor/flot/jquery_flot_time_js.html">jquery.flot.time.js</a>
  
    <li><a href="../../../vendor/flot/jquery_js.html">jquery.js</a>
  
    <li><a href="../../../vendor/jquery/jquery_js.html">jquery.js</a>
  
    <li><a href="../../../vendor/jquery/jquery_min_js.html">jquery.min.js</a>
  
    <li><a href="../../../vendor/morrisjs/morris_css.html">morris.css</a>
  
    <li><a href="../../../vendor/morrisjs/morris_js.html">morris.js</a>
  
    <li><a href="../../../vendor/morrisjs/morris_min_js.html">morris.min.js</a>
  
    <li><a href="../../../vendor/raphael/raphael_js.html">raphael.js</a>
  
    <li><a href="../../../vendor/raphael/raphael_min_js.html">raphael.min.js</a>
  
  </ul>
</div>

  </div>
</nav>

<main role="main" aria-label="Page app/assets/javascripts/cable.js">

<p>// Action Cable provides the framework to deal with WebSockets in Rails. //
You can generate new channels where WebSocket features live using the rails
generate channel command. // //= require action_cable //= require_self //=
require_tree ./channels</p>

<p>(function() {</p>

<pre class="ruby"><span class="ruby-identifier">this</span>.<span class="ruby-constant">App</span> <span class="ruby-operator">||</span> (<span class="ruby-identifier">this</span>.<span class="ruby-constant">App</span> = {});

<span class="ruby-constant">App</span>.<span class="ruby-identifier">cable</span> = <span class="ruby-constant">ActionCable</span>.<span class="ruby-identifier">createConsumer</span>();
</pre>

<p>}).call(this);</p>
</main>



<footer id="validator-badges" role="contentinfo">
  <p><a href="http://validator.w3.org/check/referer">Validate</a>
  <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
  <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
</footer>

