Looking for advice on creating a LAN driver

I may attempt to create a driver for a LAN device. At the outset I'm wondering what is the best communication method. The device will send unsolicited messages and also needs the ability to be configured by messages sent to it. Initially I thought that Websocket would be the obvious choice but the documentation indicates that the methods are deprecated. With that in mind I'm not sure what the current best choice would be. Any thoughts on this would be appreciated.

Are you looking at: Websocket Interface | Hubitat Documentation. If so, the 2.1.2 methods are still supported.

I thought that "deprecated" meant replaced with something improved. Is Websocket the best choice for my needs?

The deprecated refers to the old webSocketConnect, webSocketClose, and sendWebSocketMessage. They've been replaced by connect, close, and sendMessage.

As to whether it's the best it depends on the device's API.

OK - I see. My Mistake,

1 Like