Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6343071
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:21:52+00:00 2026-05-24T20:21:52+00:00

I have followed the exact guidelines on github and I am on the final

  • 0

I have followed the exact guidelines on github and I am on the final step of:

“That’s it! Now go to http://localhost:8080 to see Juggernaut in action.”

A dialog box is displayed. However, I am unable to write any text.

I would like to be able to fix up the page for practical chat usage instead of just testing.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T20:21:52+00:00Added an answer on May 24, 2026 at 8:21 pm

    It looks like you need to follow the guide on the Juggernaut readme under that line titled Basic Usage.

    Basic usage

    Everything in Juggernaut is done within the context of a channel.
    JavaScript clients can subscribe to a channel which your server can
    publish to. First, we need to include Juggernaut’s application.js
    file. By default, Juggernaut is hosted on port 8080 – so we can just
    link to the file there.

    <script src="http://localhost:8080/application.js"
    

    type=”text/javascript” charset=”utf-8″>

    We then need to instantiate the Juggernaut object and subscribe to the
    channel. As you can see, subscribe takes two arguments, the channel
    name and a callback.

    <script type="text/javascript" charset="utf-8">
      var jug = new Juggernaut;
      jug.subscribe("channel1", function(data){
        console.log("Got data: " + data);
      });
    </script>
    

    That’s it for the client side. Now, to publish to the channel we’ll
    write some Ruby:

    require "juggernaut"
    Juggernaut.publish("channel1", "Some data")
    

    You should see the data we sent appear instantly in the open browser
    window. As well as strings, we can even pass objects, like so:

    Juggernaut.publish("channel1", {:some => "data"})
    

    The publish method also takes an array of channels, in case you want
    to send a message to multiple channels co-currently.

    Juggernaut.publish(["channel1", "channel2"], ["foo", "bar"])
    

    That’s pretty much the gist of it, the two methods – publish and
    subscribe. Couldn’t be easier than that!

    Once you have that done you can implement the Ruby code mentioned above inside a controller which takes the user input from a form and then calls something like Juggernaut.publish("channel1", @user_data) allowing your users to send data through the server to each other.
    `

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Have followed every step correctly from this link http://msdn.microsoft.com/en-us/library/ms746621.aspx When trying to localize the
I have followed the article here http://chrisdail.com/2008/08/13/http-basic-authentication-with-apache-cxf-revisited/ I now have a working interceptor for
I have followed all the instructions here: http://www.tonyspencer.com/2003/10/22/curl-with-php-and-apache-on-windows/ to install & config apache get
I have followed this tutorial which allowed me to create a Silverlight DataGrid that
I have followed the instructions found at http://code.google.com/p/pubsubhubbub/wiki/DeveloperGettingStartedGuide to setup a hub. When I
Hi All I have followed the following example http://www.google.com/codesearch#search/&q=NumberFormattingTextWatcher&exact_package=android&type=cs I have CurrencyTextWatcher as a
I have followed this instruction in setting my webkit repository locally: http://trac.webkit.org/wiki/UsingGitWithWebKit And then
I have followed the many helpful ideas presented in this SO question . Now
I have followed the tutorial located in the wiki: http://www.magentocommerce.com/wiki/5_-_modules_and_development/payment/create-payment-method-module The module is visible
I've followed the exact same steps which have always previously worked for me, create

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.