import { TcpListener } from 'den:networking'
const socket = await TcpListener.listen("localhost:8080") // Error: Could not find export 'listen' in module 'den:networking'
It seems like I don't have an option to set the listen method to the exported class prototype, unless I construct it first. Also it is quite counterintuitive to see that static method needs a constructor first.
Currently this doesn't work:
With:
It seems like I don't have an option to set the listen method to the exported class prototype, unless I construct it first. Also it is quite counterintuitive to see that static method needs a constructor first.