Neolithic Populous Metropolis
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    node-stream-spliterpublic

    StreamSpliter is for split message streams and emit discreate messages event. There are two types of StreamSpliters, as the follow:

    Message has length send in its first bytes.

    Message

    对于按行分割的输入流,如果使用 emit 行到达事件的方式当然是非常的简单,但是如果想按照 obj.readLine(s) 的方式读就比较困难。 因为可能那时还没有行到达,最好的实现方式其实是阻塞方式,当没有行时,就等待,直到有了新行为止。

    当然,行分割器可能会提示新的消息到达,然后

    Keywords

    none

    install

    npm i node-stream-spliter

    Downloadsweekly downloads

    4

    version

    0.0.1

    license

    none

    repository

    githubgithub

    last publish

    collaborators

    • avatar