Questions tagged [express.io]

A real-time javascript web framework for node.js built atop of express.js & socket.io

Express.io is a real-time javascript web framework for node.js built on top of express.js and socket.io

Resources:

39 questions
1
vote
0 answers

Express.io Room function not found in the RequestIO object

Here's what I tried to do: server.js app = require('express.io')(); app.http().io(); app.get('/', function(req, res) { res.sendfile(__dirname + '/client.html'); }); app.put('/create', function(req, res) { …
tdlopes
  • 11
  • 2
1
vote
0 answers

Does Express.io has a property authorization to reload a session data??

I have been implementing the socket concept as in the https://github.com/techpines/express.io/tree/master/examples/sessions, I am able to display the session data that is stored once the page is initialised. But nevertheless , when a session data…
user2749751
  • 405
  • 7
  • 22
1
vote
1 answer

Check for Client Reconnection Before Disconnect Triggers

So I'm trying to have a real-time display of my online players, and it's working great thus far except for one issue. When my app listens for the disconnect, it appears that a page refresh triggers this function and said player is logged…
Sterling Archer
  • 22,070
  • 18
  • 81
  • 118
1
vote
2 answers

Connected clients in express.io

I'm developing a simple chat app using node.js and express.io I would like to display a list of the connected clients (or online for chat) all the time. In express.io's doc, there is no clear way on how to "get" the list of connected clients once a…
user2988332
  • 115
  • 1
  • 9
1
vote
1 answer

how to use both express.io and passport.socketio authentication features globally

socket.io supports a single global authorization method with no middleware feature. Both express.io and passport.socketio depend on this feature as an injection point for their logic. express.io attaches the express session to the request, and…
Amir Arad
  • 6,724
  • 9
  • 42
  • 49
0
votes
0 answers

Why is not my number moving when i try to move with arrows?

I have problem with moving the numbers with arrows, as you see i want to make a multiplayer application so 2 users can move there numbers across the canvas. I have no clue why my numbers are not moving. Something is wrong with the keydown and keyup…
0
votes
0 answers

Express.io express.Router() is returning undefined

I am in the process of switching from express to express.io for my web app, but when I run the app it throws an error, seems to have something to do with express.io's express.Route() returning undefined, is there a way I can fix…
Zunon
  • 137
  • 1
  • 8
0
votes
1 answer

Express.io and Android

I have been working in a chat app using nodejs and socket.io. I already have an Android client that works perfect in this schema. I started to use express.io instead of use express an socket.io separately. Everything works well except for my Android…
Kevin Sanchez
  • 2,215
  • 2
  • 11
  • 19
0
votes
0 answers

node.js + express.io on centOS, bash command with no errors, no feedback

My nodeJs script (/usr/bin/nodeapps/my/index.js): app = require('express.io')(); app.http().io(); console.log("Ready!"); app.io.sockets.on('connection', function(s) { console.log("Utente connesso!"); s.on('disconnect', function() { …
0
votes
0 answers

npm express.io install error on windows

I am trying to install express.io on windows to execute express.io framework examples but getting following error while installation. I have already installed node.js and npm using node.js windows installer. C:\Users\amit>npm install express.io >…
Amit Tamrakar
  • 512
  • 3
  • 13
0
votes
1 answer

Detection connections on Express.io

I know this has been discussed here, but I just can't make it work. The documentation in Express.io is quite difused. I have a running server and I want to set an event when someone access to it. This is my code for now: var express =…
0
votes
2 answers

express.io with express router returns error

When I try to emit the 'ready' event from client on express.io, it shows an error that { route: [Function], broadcast: [Function] } 'req.io.route' TypeError: Object # has no method 'ready I am using express version express@4.12.4. app.js is as…
Prasobh E
  • 154
  • 1
  • 2
  • 12
0
votes
1 answer

express.io Undefined is not a function

How do I set up express.io when I have files for each route. I'm struggling to apply the examples. I have a standard Express I'm trying to convert to express.io: Project app.js routes servepage.js Views servepage.jade …
Dirk
  • 3,073
  • 4
  • 31
  • 36
0
votes
1 answer

Express.js send data to view not sent, What went wrong

I want to pass my products array to html page. app.get("/", function(req, res){ res.render(__dirname+ "/product.html",{data: Product_Array_fromDatabase}); }) At client side in HTML page am trying to view / will loop it
Mangesh Sathe
  • 1,987
  • 4
  • 21
  • 40
0
votes
1 answer

I'm trying to return socket id?

I'm trying to use express.io module for the first time and I like it. It's really extended part of socket.io and express.js. I'm trying to return socket.id in app.io.route event. How can I get client unique id using…
user4305216