LoginSignup
0
0

More than 1 year has passed since last update.

node.jsでsocket.ioを使い大きなデータを送信すると途切れる話

Posted at

node.jsで音声データのやり取りをする処理を書いたのだが、大きなデータだと途切れる時がある。

なんか色々調べたら、これで解決できるらしい。

socket.ioを持ってくるときに

app.js
const io = require('socket.io')(http,
  {maxHttpBufferSize: 1e10}
);

バリバリドキュメントに書いてあるのだが、しばらく沼ったのでメモ

maxHttpBufferSize は指数記法で書くらしい

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0