@nixjs23n6/grpc-socket-core
Version:
gRPC for Web Clients.
25 lines • 738 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.WSConstant = void 0;
var WSConstant;
(function (WSConstant) {
WSConstant.WS_CONFIG = {
PING_TIME_IN_MS: 5000,
MESSAGE_TIMEOUT_IN_MS: 6000,
FEED_LIVE_IN_MS: 200
};
WSConstant.WS_STATE = {
0: 'ON_PROTO_INIT',
1: 'ON_OPENED',
2: 'ON_ERROR',
3: 'ON_CLOSE',
4: 'ON_CONNECTED'
};
WSConstant.WS_CLOSE_REASON = {
4000: 'Close normally',
4001: 'Close and destroy socket instance',
4002: 'Close to reconnect',
4003: 'Logout to close socket'
};
})(WSConstant = exports.WSConstant || (exports.WSConstant = {}));
//# sourceMappingURL=index.js.map