Skip to content

add nodejs Buffer support for stored packets#1

Open
entcor wants to merge 2 commits into
behrad:masterfrom
entcor:master
Open

add nodejs Buffer support for stored packets#1
entcor wants to merge 2 commits into
behrad:masterfrom
entcor:master

Conversation

@entcor
Copy link
Copy Markdown

@entcor entcor commented Nov 19, 2017

if connections was lost and payload have type - Buffer
after restore connection you will get error because Buffer will restore as object:
src: new Buffer("test")
after restore from nedb: {"1":"t","2":"e","3":"s","4":"t"}
and after it i wall get error in publish data

this code changes convert Buffer to base64 in put function and restore data to Buffer in get function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant