don/node-eddystone-beacon

Platform check is troublesome for websocket shim

Opened this issue · 1 comments

Im developing a websocket version of bleno here.
https://github.com/jacobrosenthal/bleno/tree/websocket

This platform check doesnt work in that scenario so Im not successfully advertising.
https://github.com/don/node-eddystone-beacon/blob/master/lib/beacon.js#L128

Should bleno bindings return the underlying platform? or is there a way to push this check down into the bleno layer which better knows which bindings its using?

Should bleno bindings return the underlying platform?

That would be the simplest solution for now.

or is there a way to push this check down into the bleno layer which better knows which bindings its using?

It's a possibility, but this would involve the bleno layer parsing the EIR data, and removing the flags. All for an OS X quirk.