Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

156
Views
Uncaught TypeError: Cannot read property 'prototype' of undefined with websockets

I am new with NodeJs. why am I getting this error please Uncaught TypeError: Cannot read property 'prototype' of undefined ? I try to realise a chat with websockets. Help me please ! thanks

var html = require('fs').readFileSync(__dirname + '/simpleChat.html');
var server = require('http').createServer(function (req, res) {
  res.end(html);
});
server.listen(8080);
var nowjs = require('now');
var everyone = nowjs.initialize(server);
everyone.now.distributeMessage = function (message) {
  everyone.now.receiveMessage(this.now.name, message);
};
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!