HeimgardTechnologiesAS / cordova-plugin-advanced-websocket

MIT License
27 stars 18 forks source link

Issue 9 #10

Closed dariofilipaj closed 5 years ago

dariofilipaj commented 5 years ago

What this PR does / why we need it: This PR implements message buffer for both platforms. Buffers stores messages that are received before any listener is set. Once listener is set stored messages will be flushed.

Also new parameter is introduced to make usage of buffer optional.

Which issue(s) this PR fixes

9

How was this tested? Sending websocket messages to Ionic application while app is starting up. Both on Android and iOS.

Is this PR backwards compatible Yes