wormhole/lib/constants.js

16 lines
400 B
JavaScript
Raw Normal View History

2021-01-26 12:04:53 +02:00
module.exports = {
handshakeGUID: '258EAFA5-E914-47DA-95CA-C5AB0DC85B11',
upgradeHeaderRequirement: 'websocket',
websocketVersionRequirement: '13',
states: {
CONNECTING: 'CONNECTING',
OPEN: 'OPEN',
CLOSING: 'CLOSING',
CLOSED: 'CLOSED'
},
opcodes: {
2021-02-04 16:01:14 +02:00
'CONTINUATION': 0x00,
'TEXT_FRAME': 0x01,
'BINARY_FRAME': 0x02
}
2021-02-04 16:01:14 +02:00
};