github.com/mdaxf/iac@v0.0.0-20240519030858-58a061660378/vendor_skip/nhooyr.io/websocket/conn.go (about) 1 package websocket 2 3 // MessageType represents the type of a WebSocket message. 4 // See https://tools.ietf.org/html/rfc6455#section-5.6 5 type MessageType int 6 7 // MessageType constants. 8 const ( 9 // MessageText is for UTF-8 encoded text messages like JSON. 10 MessageText MessageType = iota + 1 11 // MessageBinary is for binary messages like protobufs. 12 MessageBinary 13 )