Open ClaesNilsson opened 11 years ago
Could one argument for keeping the 'open' event be that it might take some time to check if the selected local address/port pair is already in use by another application?
I would kill it for now and add it back in later if the issue you mentioned occurs in practice.
The open event has been replaced by the opened attribute which is of type Promise. We could consider if this attribute could be removed for UDP and TCPServer sockets and consider the closed attribute to cover error handling.
[Patrick]
[Claes] [Claes] The reason for the open event for TCPServerSocket and UDPSocket was the concern that Jonas expressed in https://github.com/sysapps/raw-sockets/issues/24 but if there is no time consuming actions, e.g. allocating a local interface, we should remove the open event.