Documentation ¶
Overview ¶
Package middleware implements the events middleware.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProtocolAuthentication ¶
ProtocolAuthentication returns a middleware that authenticates WebSocket requests using the subprotocol. The subprotocol must be prefixed with the given prefix. The token is extracted from the subprotocol and used to authenticate the request. If the token is valid, the subprotocol is removed from the request, and the original authorization header is removed. If the token is invalid, the request is unchanged.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.