Pass remote address in WebSocketMessageHasBeenPosted plugin hook (#27332)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
d2c3710265
Коммит
4b0ae20ef7
@@ -9,6 +9,11 @@ import (
|
||||
"github.com/vmihailenco/msgpack/v5"
|
||||
)
|
||||
|
||||
const (
|
||||
WebSocketRemoteAddr = "remote_addr"
|
||||
WebSocketXForwardedFor = "x_forwarded_for"
|
||||
)
|
||||
|
||||
// WebSocketRequest represents a request made to the server through a websocket.
|
||||
type WebSocketRequest struct {
|
||||
// Client-provided fields
|
||||
|
||||
Ссылка в новой задаче
Block a user