peers/peerjs-server

View on GitHub
src/enums.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
export enum Errors {
    INVALID_KEY = "Invalid key provided",
    INVALID_TOKEN = "Invalid token provided",
    INVALID_WS_PARAMETERS = "No id, token, or key supplied to websocket server",
    CONNECTION_LIMIT_EXCEED = "Server has reached its concurrent user limit",
}

export enum MessageType {
    OPEN = "OPEN",
    LEAVE = "LEAVE",
    CANDIDATE = "CANDIDATE",
    OFFER = "OFFER",
    ANSWER = "ANSWER",
    EXPIRE = "EXPIRE",
    HEARTBEAT = "HEARTBEAT",
    ID_TAKEN = "ID-TAKEN",
    ERROR = "ERROR",
}