About › Forums › Forum › Suggestions › IOBoard on close event
An IOBoard “on close” event would be useful to know if the server close the connection.
No problem. I’ll add this in the next release. You could get access to the websocket close event now like this.
ioBoardInstance.getSocket().addEventListener(WSocketEvent.CLOSE, doSomethingOnDisconnect);
But I’ll add a IOBoardEvent.DISCONNECTED event which will be more convenient.
Great 😉
I have my remote control for Photoduino almost done. Thanks for your work again 😉
IOBoardEvent.DISCONNECTED has now been added in v0.1.4