Store session data using MemoryStore in Node, similar to $_SESSION['data'] = value in PHP

Question: Is it possible to store session data similar to $_SESSION['somedata'] = "Hello" in php? Here is my code so far: Creating the memory store var MemoryStore = express.session.MemoryStore, ...

Karma error - Chrome have not captured in 60000 ms, killing

DEBUG LOG: E:\Projects\abb\Projects\WebApp\abb.web>karma start DEBUG [plugin]: Loading karma-* from E:\Projects\abb\Projects\WebApp\abb .web\node_modules DEBUG [plugin]: Loading plugin...

Play Audio from client when message is recieved from socket.io - node.js

I've searched for a while for a solution to this problem, but haven't found much. My goal is to recieve a message from a udp client, which the server recieves and forwards to a web client, which...

Socket.IO 1.0.x: Get socket by id

In the 0.9.x version, we can get socket by ID like this: io.sockets.socket(socketId) But in 1.0.x we can't. How to find a socket by id in 1.0.x?

express.js 4 and sockets with express router

I'm trying to create a really simple node API using express.js 4 but I need a few 'realtime' events for which I added socket.io. I'm fairly new to both so I'm likely missing something basic but I...

SiegeTest:socket error unable to connect

Really need help to figure out what is going wrong. Application Background: It is a nodejs with socket.io application. I am testing my site load using siege windows 3.0.5 tool. 70 concurrent users...

io.emit vs socket.emit

I'm new to socket.io and have run in to something that seems pretty weird. I don't actually know the difference between socket.emit and io.emit but I can't find an explanation...

Error during WebSocket handshake: Unexpected response code: 500

i am using a websocket on my site but at random it sends me the following error message: WebSocket connection to...

NPM install fails with node-gyp

We are having problems running "npm install" on our project. A certain file cannot be found : fatal error C1083: Cannot open include file: 'windows.h' It appears to be coming from the node-gyp...

Vue.js Routing with back button

I already use this Vue.js Routing example application. https://github.com/chrisvfritz/vue-2.0-simple-routing-example In the src/main.js I have so much data value . const app = new Vue({ el:...

Send parameter to socket in swift iOS app

I am making chat application in swift by using socket.io and node.js. I need to send along the user name parameter with one socket method. I tried like below without sending parameter. This works...

Live Video Stream on a Node.js Server

I have been researching this a lot but am frustrated as I feel like the solution should be simple though I know wont be. Ideally i'd just want to use node to host the server, webrtc getusermedia...

Failed to execute 'appendBuffer' on 'SourceBuffer': The HTMLMediaElement.error attribute is not null

I am trying to stream a video file via socket.io to my client (currently using Chrome as client). I am only getting the first frame of the video and afterwards the Failed to appendBuffer is...

python Socket.io client default port number

I'm using heroku for trying some example with node.js and Socket.io. So I have a server on heroku which using socket.io. I want to connect and communicate my server to a python client script via...

What's the meaning of `EIO` and `t` in socketio

I use python-socketio create a project. Bellow is a request: 127.0.0.1 - - [22/Feb/2018 05:41:17] "GET /socket.io/? EIO=3&transport=polling&t=M6y1xWT&sid=446d37ddf93f471888abf02017a5a576 HTTP/1.1"...

How to use a network IP instead of localhost with nodejs without express?

I'm using nodejs as a server for a videogame, and i want to try the multiplayer part but, I can not connect from outside my computer via localhost. So, I used express before and this worked: `var...

I am getting an error Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema

I am trying to make video calling website using WebRTC and React js but every time I do web pack --progress -p I can't understand why What is the issue in it Invalid configuration object. Webpack...

Same event emitting multiple times in socket.io-client reactjs

I am creating a chat app in react, expressjs and socket.io. When I click on Send Button, I am emitting an event and listening that event on server side and again emitting another event from server...

How to fix ERR_CERT_COMMON_NAME_INVALID when trying to connect to a node.js server (not hosted on localhost)?

So I'm trying to create a script in Tampermonkey (JavaScript) to send data to a node.js server. For those who don't know what Tampermonkey is, it's basically an extension to run JavaScript scripts...

How do I get Socket.io working with Svelte?

I'm trying to get socket.io working with Svelte that I've recently started experimenting with, which is in its stock form as installed by the instructions given at https://svelte.dev/. I'm at a...

React Native laravel echo listen is not working

Everything works just fine with laravel redis and everything running and working with no issues. However, I am not getting a console log for my event from react native and there is no warnings or...

Same-origin request causes “Access-Control-Allow-Origin doesn’t match” error, though origin of course matches. Note: has CSP policy w/ "sandbox"

When the exact same URL is being used in both by CORS and its web pages' URL, I still get the same error messages in my Firefox development console. Browser console messages were: Cross-Origin...

ERROR SocketEnginePolling: Error during long poll request

let manager = SocketManager(socketURL: URL(string: "Some url")!, config: [.log(true), .compress]) var socket:SocketIOClient! var name: String? var resetAck: SocketAckEmitter? override func...

How to check if mongoose is connected?

In a project I am working on, I connect to a database like so and it outputs the console.log part const express = require('express'); const app = express(); const socketio =...

Python Socket.io handle all events (catch all events from client)

The documentation for Python Socket.io is here: https://python-socketio.readthedocs.io/en/latest/api.html#asyncserver-class That is the server class, with 'event' and 'on' methods for handling...

My Angular 11 cli app not working with jest. Error I get: TypeError: Cannot read property 'paths' of undefined

My Angular 11 cli app not working with jest. When I do npm run test e.g. jest --updateSnapshot I get the error in my terminal below: Error I get: TypeError: Cannot read property 'paths' of...

Flask socketio, how to create room per user?

I'm creating a notifications service, and need to store one user in one room to send him notification to all opened tabs. How can I put user per room? I had authorization, where users had...

how can i include a socket.io-client in the service worker of chrome Extension(manifest V3)

I copied the client socket.io script from the cdn and then used importScript but when i tru to run it gives ReferenceError: document is not defined at JSONPPolling.doPoll (socketio.js:3683) at...

Multipeer connection Webrtc Flutter

I am trying to make 3 peer video chat using Webrtc in Flutter. A needs to see B and C. B needs to see A and C. C needs to A and B. I also use socket.io for signalling server. I used 2...

laravel broadcast redis socket-io, doesn't listen to event

I'm using this tutorial for laravel broadcast with redis and socket-io, https://www.itsolutionstuff.com/post/laravel-broadcast-redis-socket-io-tutorial-example.html. But in the final result, I...