View definition

(*Conn).SetReadLimit

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

Description

SetReadLimit sets the maximum size for a message read from the peer. If a message exceeds the limit, the connection sends a close frame to the peer and returns ErrReadLimit to the application.