Returns true if the op code corresponds to a control frame.
(frameType wsOpCode)
| 837 | |
| 838 | // Returns true if the op code corresponds to a control frame. |
| 839 | func wsIsControlFrame(frameType wsOpCode) bool { |
| 840 | return frameType >= wsCloseMessage |
| 841 | } |
| 842 | |
| 843 | func isWebsocketScheme(u *url.URL) bool { |
| 844 | return u.Scheme == wsScheme || u.Scheme == wsSchemeTLS |