We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d17898b commit ab1f6feCopy full SHA for ab1f6fe
lib/mint/web_socket/frame.ex
@@ -93,7 +93,7 @@ defmodule Mint.WebSocket.Frame do
93
94
def new_mask, do: :crypto.strong_rand_bytes(4)
95
96
- @spec encode(Mint.WebSocket.t(), Mint.WebSocket.frame()) ::
+ @spec encode(Mint.WebSocket.t(), Mint.WebSocket.shorthand_frame() | Mint.WebSocket.frame()) ::
97
{:ok, Mint.WebSocket.t(), bitstring()}
98
| {:error, Mint.WebSocket.t(), WebSocketError.t()}
99
def encode(websocket, frame) when is_friendly_frame(frame) do
0 commit comments