TOPLLab / WARDuino

📟 A dynamic WebAssembly VM for embedded systems
https://topllab.github.io/WARDuino/
Mozilla Public License 2.0
73 stars 7 forks source link

WebSocket starts a socketserver instead of a socketclient #149

Closed carllocos closed 1 month ago

carllocos commented 1 year ago

When you start the emulator with option --proxy portnumber. The VM creates an object of type WebSocket which is meant to be used as the client side socket that connects to a remote socket server running on the MCU. The socket connection is supposed to be used for proxy call and the pushing of events.

However, when opening the created WebSocket object via WebSocket::open, the object starts a socket server instead of establishing a connection to the remote server as one would expect.

tolauwae commented 3 months ago

Fixed with c916d5e75dd254c29547e9a556f80dd34fd18d43 and da9013122e197d1d76f0958cff3d274acc372cc5. Should release with the next version.

tolauwae commented 1 month ago

Version 0.5.0 just released with this fix.