-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add simple vanilla JS example to repo #260
Comments
Ok it might just be a discovery problem 😅 – I now found out that the glitch project has a normal URL too: how-to-buttplug-wasm.glitch.me Glitch was also a bit confusing here because if I try the glitch project version in "Preview pane" it doesn't work (probably due to some iframe restrictions) but in a new window it works (which back then I didn't try because I thought the example is broken). So maybe an easy enhancement would be change the link in the readme to: |
Thanks for the input! So, yeah, you're completely correct, the repo and its demos are a mess right now. tl;dr version is: I pivoted us to a pure WASM library, that was one of the worst ideas I've ever had, so I quickly pivoted us back. Problem being, I didn't work much on that last pivot, just got the base library back in order and shoved it out. That's why everyone looks broken and half-done: because it is. :3 I'd love to have p5.js level docs, but this is basically a 2 person project and I'm the one that handles most of the non-device code as well as documentation, so I'm just out of time at the moment. That said, I'll try to at least get some of our tutorial links cleaned up soon. I also need to get other bugs like #256 fixed so what we do have left in WASM in usable. I'm just in the middle of doing a pretty major overhaul on the base rust library, so our satellite language libraries are suffering a bit for that right now. |
Thanks for the context. Makes a lot of sense. Once the overhaul is done: PS: Sad that mobile bluetooth support is so limited ... otherwise I'd have tried to find a sex toy company as a client and propose some fun/playful interfaces for their products (which would create some time on my end to contribute to the library). |
The mobile bluetooth restriction from the browser is hopefully temporary, and really only an issue on iOS (android allows localhost websockets on mobile via chrome). I'm working on a way to route peer to peer locally via webrtc, just going to be a while. |
First of all:
This is a super interesting and fun project – thanks for putting in the time and effort ❤️
Problem:
I had a hard time getting started. Some notes from my journey:
Solution:
I think it would be cool to have a simple example to cover a basic but common use case already in the readme of this repository as this is where one lands when checking out buttplug-js. For example:
Quickstart
index.html
-file (should be linked but I posted below)📄 index.html file (likely not perfect)
PS: It feels weirdly taboo to open an issue publicly in such a repository ... but it's also liberating 😅
The text was updated successfully, but these errors were encountered: