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
/
json
/
encode.js
6 lines
(4 loc)
•
142 B
JavaScript
View Raw
1
2
3
4
5
6
var
utf8encode =
require
(
'../../core/utf8/encode'
)
module
.
exports
=
function
encodeJson
(
data
) {
return
utf8encode
(
JSON
.
stringify
(data)) }