good morning!!!!

Skip to content
Snippets Groups Projects
conn.go 376 B
Newer Older
// +build !js

package websocket
Anmol Sethi's avatar
Anmol Sethi committed

// 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
Anmol Sethi's avatar
Anmol Sethi committed
	// MessageBinary is for binary messages like protobufs.
Anmol Sethi's avatar
Anmol Sethi committed
)