wormhole/lib/constants.js
2021-02-04 16:01:14 +02:00

16 lines
No EOL
400 B
JavaScript

module.exports = {
handshakeGUID: '258EAFA5-E914-47DA-95CA-C5AB0DC85B11',
upgradeHeaderRequirement: 'websocket',
websocketVersionRequirement: '13',
states: {
CONNECTING: 'CONNECTING',
OPEN: 'OPEN',
CLOSING: 'CLOSING',
CLOSED: 'CLOSED'
},
opcodes: {
'CONTINUATION': 0x00,
'TEXT_FRAME': 0x01,
'BINARY_FRAME': 0x02
}
};