14 lines
361 B
Go
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
|
||
|
)
|