Last 12 weeks · 27 commits
4 of 6 standards met
Summary The companion app (iOS) cannot connect to Haptics Studio on Mac. The WebSocket server (port 9999) and UDP broadcast (port 9998) are not running on the Mac. Because of this, haptic preview on a device — one of the main features of the companion app — does not work in the OSS version. Environment OS: macOS 26.3.1 Arch: arm64 Node: v24.15.0 Yarn: 1.22.22 Commit: f214362cf2c3aba7ed0f8bda2c9b35b67926feff What happens The iPhone companion app keeps showing "Connecting to Haptics Studio..." and never connects. On Mac, shows that nothing is listening on the port. Error When I run , this error is shown in the log: Cause In , is an empty string. tries to use this , but because it is empty, it throws . In the method of , is called before . The exception stops the rest of the method, so the WebSocket server (and UDP broadcast) never start. Workaround If I comment out in , the code after it runs, and the companion app can connect. before after
Summary When I run , a syntax error happens in and Haptics Studio fails to start. Environment OS: macOS 26.3.1 Arch: arm64 Node: v24.15.0 Yarn: 1.22.22 Commit: f214362cf2c3aba7ed0f8bda2c9b35b67926feff Error Where the problem is In , the block (around lines 109–120) has some leftover code ( and ) between comments. These lines should have been removed. Workaround Removing the broken lines makes the build work. Note When I ran for , I found more than 100 similar places in the repository. I think it is better to fix all of them together, not only this one place. That is why I am opening an issue instead of sending a PR. grep sample
Repository: facebook/haptics-studio. Description: Haptics Studio is our desktop application for designing haptics. Stars: 43, Forks: 7. Primary language: TypeScript. Languages: TypeScript (81%), C# (7.6%), ShaderLab (4.9%), JavaScript (2.3%), Kotlin (1.9%). License: MIT. Topics: haptics, meta. Open PRs: 0, open issues: 1. Last activity: 1w ago. Community health: 75%. Top contributors: facebook-github-bot.