I'm using the "github.com/gorilla/websocket" package in Golang and I want to know if my websocket connection is in OPEN state or in CONNECTING state.
The states that I want to know can be seen here
The Gorilla package does not have the concept of these states, but here's a rough mapping from the browser states to Gorilla.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.