View definition

func IsUnexpectedCloseError(err error, expectedCodes ...int) bool

Defined in github.com/gorilla/websocket/conn.go

Description

IsUnexpectedCloseError returns boolean indicating whether the error is a *CloseError with a code not in the list of expected codes.