Giter Site home page Giter Site logo

Comments (4)

nkzawa avatar nkzawa commented on July 24, 2024

Umm, your code looks nothing wrong for me, and tests was passed on safari last time.
How did you use the library on client side? I suspect browserify used to build the library might too old now.

from socket.io-stream.

daniel7912 avatar daniel7912 commented on July 24, 2024

I downloaded the zip from the github page and added socket.io-stream.js to my code manually, then used the javascript from my previous post to use it.

Looks like I downloaded it on 2nd March 2015.

from socket.io-stream.

daniel7912 avatar daniel7912 commented on July 24, 2024

I updated both socket.io (I found I was using version 1.1.0) and socket.io-stream to the latest versions and now the error looks like this:

events.js:72
        throw er; // Unhandled 'error' event
              ^
TypeError: Unknown encoding: buffer
    at Buffer.write (buffer.js:377:13)
    at new Buffer (buffer.js:215:28)
    at IOStream.Readable.push (_stream_readable.js:122:15)
    at push (/home/user/www/node_modules/socket.io-stream/lib/iostream.js:147:20)
    at IOStream._onwrite (/home/user/www/node_modules/socket.io-stream/lib/iostream.js:153:5)
    at Socket._onwrite (/home/user/www/node_modules/socket.io-stream/lib/socket.js:231:10)
    at Socket.<anonymous> (/home/user/www/node_modules/socket.io-stream/node_modules/component-bind/index.js:21:15)
    at Socket.EventEmitter.emit (events.js:106:17)
    at Socket.onevent (/home/user/www/node_modules/socket.io/lib/socket.js:330:8)
    at Socket.onpacket (/home/user/www/node_modules/socket.io/lib/socket.js:290:12)

from socket.io-stream.

nkzawa avatar nkzawa commented on July 24, 2024

Can you post your code which I can reproduce the issue if possible?

from socket.io-stream.

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.