Skip to content

UDPSocket.connect ​

js
    UDPSocket.connect(Object object)

Pre-connects to the specified IP and port. Must be used together with the write method.

Parameters

  • Object object: input parameter

object property description:

PropertyTypeDefaultRequiredDescription
addressstringYesThe address to send messages to
portnumberYesThe port number to send messages to