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
5
votes
1 answer

Error: read ECONNRESET at TLSWrap.onStreamRead when closing the browser/tabs

im writing my first chat app in nodejs , my app basically keeps track of online users and put them in the rooms to chat via webrtc ...im using pm2 to run the chat server so i noticed sometimes when i close browser tabs my app will crash and pm2 will…
hretic
  • 999
  • 9
  • 36
  • 78
5
votes
2 answers

What utility of express.io VS express + socket.io?

I discover socket.io and chat exemple here : https://github.com/rauchg/chat-example/blob/master/index.js They use directly require('express') AND require('socket.io'). So what the differences, the advantages, to use : require('express.io') like…
Matrix
  • 3,458
  • 6
  • 40
  • 76
4
votes
0 answers

Share the passport authentication between http and websocket parts of express.io app

I have the passport HTTP authentication: var express = require('express.io'); var passport = require('passport'); var expressSession = require('express-session'); var app =…
Alexander Korzhykov
  • 1,063
  • 10
  • 14
3
votes
0 answers

Express memory.js bug, @3.4.8

Sometimes when I reload the page, server is giving this error. When I restart the server it's working, but after a while it's giving same error again. I'm only storing user_id in session. Also I'm using…
Lazy
  • 1,807
  • 4
  • 29
  • 49
2
votes
1 answer

Convert angular controller for realtime data with express.io

I am new to express.io.I have a set of code running in socket.io with node.js and angular in frontend with no problem.I have created server and it is emitting a set of data in an interval of 1000ms.Sample code for the server which is interacting…
Abhishek Pachal
  • 554
  • 6
  • 27
2
votes
1 answer

express 4+socket.io or express.io?

i'm trying to implement a realTime notification system for my social platform , and i'm wondering if i should just upgrade to express.io or keep express4 and include socket.IO . according to your experience are there any pitfalls i'm not aware of?
Genjuro
  • 7,405
  • 7
  • 41
  • 61
1
vote
0 answers

Socket connections stay open even if the client has not opened the browser

I am working on a game that is highly dependent on sockets. I want to create a socket connection to stay open even if the client has not logged in. The game has one admin and few players. Admin has the right to override the player. So the below is…
Karan
  • 115
  • 11
1
vote
1 answer

Socket.io - sync data between server and clients

first time node js, i am writing an app for private use between me and friends where my friends could join in anytime. is it possible to have the server have an object array a.e. 'franksLibrary' with n items and the users be able to read and modify…
Odinh
  • 183
  • 2
  • 15
1
vote
0 answers

Using API from express.io route

I'm not sure how to use NodeJS API in combination with express.io There is an API definition: app.get('/api', function(req, res) { connection.query("select * from table") , function (error, results) { if(error) { …
corry
  • 1,457
  • 7
  • 32
  • 63
1
vote
0 answers

websocket trigger events in case connection lost between socket client and socket server

I am using javascript websocket io https://github.com/socketio/socket.io I have been scratching my head about what event will be triggered on the client and server side in case the connection is lost. Let's say the socket io client running on mobile…
1
vote
1 answer

MEAN stack: Wondering api.js and crud.js

I'm studying MEAN stack these day, So I make some sample apps following guidance. I made up "Bookshelf" application just few hours ago, this is provided by google cloud service, so I should delve into sample code to understand how it works. Whole…
ton1
  • 7,238
  • 18
  • 71
  • 126
1
vote
1 answer

Disable CORS in Expres.io for socket.io calls

I try to connect from angular to a Express.io socket, but I have error 404 CORS. How can I solve this? XMLHttpRequest cannot load http://localhost:3000/socket.io/?EIO=3&transport=polling&t=1447367208172-29. No 'Access-Control-Allow-Origin' header is…
David
  • 1,116
  • 3
  • 18
  • 32
1
vote
2 answers

Alternatives for MemoryStore express.io

When running node js in production mode, this warning is logged : Warning: connection.session() MemoryStore is not designed for a production environment, as it will leak memory, and will not scale past a single process. Doing a brief research, i…
khalil
  • 681
  • 1
  • 6
  • 22
1
vote
0 answers

Node.js - Handle Socket.io routes with Express.io and Router object

I'm struggling with Express.io, Express 4 and some routing stuff and I need your help! The code posted here works. My problem is that I'd love to separate the logic from app.js to every single route file (i.e. map.js). Unfortunately I can't find on…
Cob013
  • 1,057
  • 9
  • 22
1
vote
0 answers

Express-io CORS not working

I'm trying to establish a Node.js server which can serve both http and socket requests. NOTE: My server and client need to be two separate things. I am NOT serving index.html from the server. I have a separate, standalone copy of index.html and…
AdityaParab
  • 7,024
  • 3
  • 27
  • 40
1
2 3