UNPKG
@rinq/websocket
Version:
latest (0.2.1)
0.2.1
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
Rinq in the browser.
github.com/rinq/websocket
rinq/websocket
@rinq/websocket
/
serialization
/
unmarshaller
/
call-success.js
8 lines
(5 loc)
•
207 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
module
.
exports
=
function
unmarshalCallSuccess
(
header
) {
var
seq = header[
0
]
if
(!
Number
.
isInteger
(seq) || seq <
1
)
throw
new
Error
(
'Invalid CALL_SUCCESS message header (seq).'
)
return
{
seq
: seq} }