derohe-miniblock-mod/vendor/nhooyr.io/websocket/conn.go
2021-12-04 16:42:11 +00:00

14 lines
361 B
Go

package websocket
// MessageType represents the type of a WebSocket message.
// See https://tools.ietf.org/html/rfc6455#section-5.6
type MessageType int
// MessageType constants.
const (
// MessageText is for UTF-8 encoded text messages like JSON.
MessageText MessageType = iota + 1
// MessageBinary is for binary messages like protobufs.
MessageBinary
)