forked from muka/peerjs-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enum.go
39 lines (37 loc) · 1.3 KB
/
enum.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package server
const (
// ErrorInvalidKey Invalid key provided
ErrorInvalidKey = "Invalid key provided"
// ErrorInvalidToken Invalid token provided
ErrorInvalidToken = "Invalid token provided"
// ErrorInvalidWSParameters No id, token, or key supplied to websocket server
ErrorInvalidWSParameters = "No id, token, or key supplied to websocket server"
// ErrorConnectionLimitExceeded Server has reached its concurrent user limit
ErrorConnectionLimitExceeded = "Server has reached its concurrent user limit"
// MessageTypeOpen OPEN
MessageTypeOpen = "OPEN"
// MessageTypeLeave LEAVE
MessageTypeLeave = "LEAVE"
// MessageTypeCandidate CANDIDATE
MessageTypeCandidate = "CANDIDATE"
// MessageTypeOffer OFFER
MessageTypeOffer = "OFFER"
// MessageTypeAnswer ANSWER
MessageTypeAnswer = "ANSWER"
// MessageTypeExpire EXPIRE
MessageTypeExpire = "EXPIRE"
// MessageTypeHeartbeat HEARTBEAT
MessageTypeHeartbeat = "HEARTBEAT"
// MessageTypeIDTaken ID-TAKEN
MessageTypeIDTaken = "ID-TAKEN"
// MessageTypeError ERROR
MessageTypeError = "ERROR"
// WebsocketEventMessage message
WebsocketEventMessage = "message"
// WebsocketEventConnection connection
WebsocketEventConnection = "connection"
// WebsocketEventError error
WebsocketEventError = "error"
// WebsocketEventClose close
WebsocketEventClose = "close"
)