greycat.websocket.WSConstants Maven / Gradle / Ivy
/**
* Copyright 2017 The GreyCat Authors. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package greycat.websocket;
class WSConstants {
static final String DISCONNECTED_ERROR = "Please connect your WebSocket client first.";
static final byte REQ_GET = 0;
static final byte REQ_PUT = 1;
static final byte REQ_LOCK = 2;
static final byte REQ_UNLOCK = 3;
static final byte REQ_REMOVE = 4;
static final byte REQ_TASK = 5;
static final byte RESP_GET = 6;
static final byte RESP_PUT = 7;
static final byte RESP_REMOVE = 8;
static final byte RESP_LOCK = 9;
static final byte RESP_UNLOCK = 10;
static final byte RESP_TASK = 11;
static final byte NOTIFY_UPDATE = 12;
static final byte NOTIFY_PRINT = 13;
static final byte NOTIFY_PROGRESS = 14;
static final byte HEART_BEAT_PING = 15;
static final byte HEART_BEAT_PONG = 16;
}