Skip to content

feat: c:handle_preconnect#4

Open
mhanberg wants to merge 1 commit into
bunopnu:mainfrom
mhanberg:preconnect
Open

feat: c:handle_preconnect#4
mhanberg wants to merge 1 commit into
bunopnu:mainfrom
mhanberg:preconnect

Conversation

@mhanberg
Copy link
Copy Markdown

A new callback called "handle_preconnect" which is called before the
Mint.HTTP connection is started. This allows you to add headers or
change the state before making the connection.

This is useful for WS servers that use a timestamp signature in a
header, which is rejected if the timestamp is too old. This is run when
reconnected, so it'll be a fresh header.

A new callback called "handle_preconnect" which is called before the
Mint.HTTP connection is started. This allows you to add headers or
change the state before making the connection.

This is useful for WS servers that use a timestamp signature in a
header, which is rejected if the timestamp is too old. This is run when
reconnected, so it'll be a fresh header.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant