You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.
the server socket API doesn't need an onOpen event.. there is
nothing that happens in between the constructor and onOpen that could
block
[Ke-Fong]: socket() + bind() + listen() have "immediate" non blocking
effect indeed.
[Claes] [Claes] The reason for the open event for TCPServerSocket and UDPSocket was the concern that Jonas expressed in #24 but if there is no time consuming actions, e.g. allocating a local interface, we should remove the open event.
The text was updated successfully, but these errors were encountered:
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?
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 #24 but if there is no time consuming actions, e.g. allocating a local interface, we should remove the open event.
The text was updated successfully, but these errors were encountered: