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

  • Home
  • SEARCH
  • 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 8302409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:17:04+00:00 2026-06-08T17:17:04+00:00

I created a coffeescript version from the second example here: http://socket.io/#how-to-use In the example

  • 0

I created a coffeescript version from the second example here:

http://socket.io/#how-to-use

In the example an express server is used by socket.io and two messages are passed between client and server.

You can take a look at the coffeescript and its generated javascript on pastebin:

  • server.coffee
  • frontend.coffee
  • server.js
  • frontend.js

Although I can’t spot an error in the code the program crashes. Here’s the error message:

  • error message

Without socket.io the application runs fine. I’m certain that the error has nothing to do with express or jade.
My machine runs with windows 7 32bit. The browser is the latest version of chrome.

Update:

I changed the port the express server listens to and now the program executes without an error. However socket.io still doesn’t work as expected. I changed the client script and added an alert on receiving the message. This alert statement is never executed. I guess that there are no messages passed between client and server but why ?

  • 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-06-08T17:17:05+00:00Added an answer on June 8, 2026 at 5:17 pm

    Express server does not route socket requests correctly. At least id did not in example I was trying 🙂

    I had a similar problems and when I switched from using express server and started using Apache or even nginx everything was working without problems. Same code was working in nginx and not in express server.

    So all in all it might be express server, just try to move your files to whatever “proper” web server you have and test from there.

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

Sidebar

Related Questions

I'm trying to create a basic version of this example in CoffeeScript: http://davidsulc.com/blog/2012/04/15/a-simple-backbone-marionette-tutorial/ .
I'm trying to figure out how inheritance works in coffeescript. Here's a simplified example
Created .NET WCF service, tested it - works. Generated schemas from Data and service
I created a python server on port 8000 using python -m SimpleHTTPServer . When
I created cookie with server side code (c#) and it was shown in chrome
I created a PHP Drop Down which is populated from a MySql Database and
I created a keyspace with the cassandra-cli tool, and i can use it. However
I began to like the following pattern (sry, Coffeescript here cause it's more readable
Created a AlertDialog that is used to prompting the user to enter a keyword.
I've created a class in coffeescript with a randomInt method that generates x and

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.