You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
374 B

package auth
import (
"encoding/json"
"wss-pool/pkg/model/base"
)
type WebSocketV2AuthenticationResponse struct {
base.WebSocketV2ResponseBase
}
func ParseWSV2AuthResp(message string) *WebSocketV2AuthenticationResponse {
result := &WebSocketV2AuthenticationResponse{}
err := json.Unmarshal([]byte(message), result)
if err != nil {
return nil
}
return result
}