GithubHelp home page GithubHelp logo

Comments (6)

nkzawa avatar nkzawa commented on May 20, 2024

How can I reproduce this? Could you explain the point of your PRs?

from socket.io-redis-adapter.

swmoon203 avatar swmoon203 commented on May 20, 2024

I ran Redis under unix domain socket

Emitter

var ioe = socketid_emitter({ socket: '/var/run/shm/redis.sock' });
ioe.of("/news").emit("update", message);

Reciver

var server = http.Server(app);
var io = socketio(server);
io.adapter(socketio_redis({ socket: '/var/run/shm/redis.sock' }));

Error log

events.js:72
        throw er; // Unhandled 'error' event
                 throw er; // Unhandled 'error' event
                   ^^

Error: 107 trailing bytes
    at Object.decode (/node_modules/socket.io-redis/node_modules/msgpack-js/msgpack.js:200:47)
    at Redis.onmessage (/node_modules/socket.io-redis/index.js:93:24)
    at RedisClient.EventEmitter.emit (events.js:117:20)
    at RedisClient.return_reply (/node_modules/socket.io-redis/node_modules/redis/index.js:672:22)
    at ReplyParser.<anonymous> (/node_modules/socket.io-redis/node_modules/redis/index.js:309:14)
    at ReplyParser.EventEmitter.emit (events.js:95:17)
    at ReplyParser.send_reply (/node_modules/socket.io-redis/node_modules/redis/lib/parser/javascript.js:300:10)
    at ReplyParser.execute (/node_modules/socket.io-redis/node_modules/redis/lib/parser/javascript.js:211:22)
    at RedisClient.on_data (/node_modules/socket.io-redis/node_modules/redis/index.js:534:27)
    at Socket.<anonymous> (/node_modules/socket.io-redis/node_modules/redis/index.js:91:14)

from socket.io-redis-adapter.

goalsoft avatar goalsoft commented on May 20, 2024

Hello, I found that if you use unix socket, will cause an error, it will not use tcp socket

from socket.io-redis-adapter.

rauchg avatar rauchg commented on May 20, 2024

I removed the socket option, it made no sense

from socket.io-redis-adapter.

goalsoft avatar goalsoft commented on May 20, 2024

How would not make sense? Unix socket with faster

from socket.io-redis-adapter.

rauchg avatar rauchg commented on May 20, 2024

Because in any case it should be two sockets, considering we need to open connections to Redis.

from socket.io-redis-adapter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.