1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Play Frameworkでwebsocketのframeを増やす

Last updated at Posted at 2019-07-19

デファルトは64kのため、大きいデータを送ると上限を超えてしまい通信に失敗する。

application.confに下記を追記することで、上限を増やせる

play.server.websocket.frame.maxLength = 512k

ただ、これだとdevモード(sbt run)では適用されないため、build.sbtに下記も追記する

PlayKeys.devSettings += "play.server.websocket.frame.maxLength" -> "512k"

どうやらHttpサーバーの起動時にapplication.confにアクセスできないようです。

詳細は下記参照
https://www.playframework.com/documentation/2.6.x/ConfigFile#Using-with-the-run-command

1
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?