diff --git a/app/nodejs-v14/src/main/scala/io/scalajs/nodejs/dgram/Socket.scala b/app/nodejs-v14/src/main/scala/io/scalajs/nodejs/dgram/Socket.scala index ed4b65412..95c4d7e85 100644 --- a/app/nodejs-v14/src/main/scala/io/scalajs/nodejs/dgram/Socket.scala +++ b/app/nodejs-v14/src/main/scala/io/scalajs/nodejs/dgram/Socket.scala @@ -31,6 +31,12 @@ class Socket private[this] () extends IEventEmitter { def addMembership(multicastAddress: String, multicastInterface: String): Unit = js.native def addMembership(multicastAddress: String): Unit = js.native + @enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs12) + def addSourceSpecificMembership(sourceAddress: String, groupAddress: String, multicastInterface: String): Unit = + js.native + @enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs12) + def addSourceSpecificMembership(sourceAddress: String, groupAddress: String): Unit = js.native + /** * Returns an object containing the address information for a socket. For UDP sockets, * this object will contain address, family and port properties. @@ -71,16 +77,14 @@ class Socket private[this] () extends IEventEmitter { def close(callback: js.Function): Unit = js.native def close(): Unit = js.native - @enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs12) def connect(port: Int, - address: String, - callback: js.Function0[Any] - ): Unit = js.native - @enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs12) def connect(port: Int, address: String): Unit = - js.native - @enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs12) def connect(port: Int, - callback: js.Function0[Any] - ): Unit = js.native - @enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs12) def connect(port: Int): Unit = js.native + @enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs12) + def connect(port: Int, address: String, callback: js.Function0[Any]): Unit = js.native + @enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs12) + def connect(port: Int, address: String): Unit = js.native + @enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs12) + def connect(port: Int, callback: js.Function0[Any]): Unit = js.native + @enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs12) + def connect(port: Int): Unit = js.native @enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs12) def disconnect(): Unit = js.native @@ -88,6 +92,12 @@ class Socket private[this] () extends IEventEmitter { def dropMembership(multicastAddress: String, multicastInterface: String): Unit = js.native def dropMembership(multicastAddress: String): Unit = js.native + @enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs12) + def dropSourceSpecificMembership(sourceAddress: String, groupAddress: String, multicastInterface: String): Unit = + js.native + @enableIf(io.scalajs.nodejs.internal.CompilerSwitches.gteNodeJs12) + def dropSourceSpecificMembership(sourceAddress: String, groupAddress: String): Unit = js.native + def getRecvBufferSize(): Int = js.native def getSendBufferSize(): Int = js.native