anmonteiro / anmonteiro/httpun-ws

Wsd.close without a close code does not send a close frame

オープン
#37 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
OCaml
スター
29
フォーク
16
PR マージ指標
30日以内にマージされた PR はありません

説明

In

https://github.com/anmonteiro/websocketaf/blob/248a2cb0dcffa51996c3ad7643577dce75d67454/lib/wsd.ml#L62-L72

`Wsd.close ~code:1000` sends a close frame with status 1000, but `Wsd.close` without `~code` appears to just hard-close the WebSocket connection. This might not be unreasonable, but IMO it should be documented, because another reasonable interpretation is that omitting `~code` should cause a default code to be sent.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。