swift-bundler icon indicating copy to clipboard operation
swift-bundler copied to clipboard

Windows support broken by `Socket`

Open stevapple opened this issue 1 year ago • 3 comments

The commit https://github.com/stackotter/swift-bundler/commit/7bfcf2069930ab484ec4beb377ebda2d375ad4bd adds dependency on https://github.com/stackotter/Socket, which blocks building on Windows.

To restore the support, we may make the dependency and related functionalities platform-specific.

stevapple avatar May 26 '24 09:05 stevapple

Ah, unfortunate, that may require making our own socket library in future then (or updating that old one), cause I'd like to eventually bring hot reloading to windows too.

I'm currently in the middle of refactoring a bunch and bringing hot reloading to Linux so I'll look into addressing this as part of/after that.

Are you using swift bundler on windows at the moment? I don't recall ever putting effort into making it support Windows so that's kinda cool if it does even if it's indirectly via the linux platform option

stackotter avatar May 26 '24 10:05 stackotter

@stackotter I think issues are disabled on that project, but might be worth mentioning ZeroMQ, it has solid cross-platform support, with TCP sockets on Microsoft Windows, and Posix sockets on macOS and Linux.

furby-tm avatar Jun 02 '24 19:06 furby-tm

Does ZeroMQ let you just use their cross-platform tcp socket wrapper?

stackotter avatar Jun 06 '24 03:06 stackotter

https://github.com/swhitty/FlyingFox is the solution, I think!

gregcotten avatar Feb 26 '25 23:02 gregcotten

Good to know! I've used that in the past and liked it. For now I think this issue can be closed on Windows cause I've disabled the hot reloading related code on Windows since hot reloading isn't supported there yet anyway.

stackotter avatar Feb 26 '25 23:02 stackotter