How to implement a edge driver for bridge device in lan?

So, conceptually, I’m assuming I can return an “array” of devices in my driver, the number of the “device array” can change based on whatever I retrieved from the hub, correct?
I’ll read the post you recommend carefully.

And is this ZigBee driver for connecting a ZB device to Smartthings hub directly, not through the manufacturer’s own hub via IP protocol?

One more question, is does the edge driver support mdns discovery and websocket protocol, and json lib?