@@ -31,6 +31,12 @@ class Socket private[this] () extends IEventEmitter {
31
31
def addMembership (multicastAddress : String , multicastInterface : String ): Unit = js.native
32
32
def addMembership (multicastAddress : String ): Unit = js.native
33
33
34
+ @ enableIf(io.scalajs.nodejs.internal.CompilerSwitches .gteNodeJs12)
35
+ def addSourceSpecificMembership (sourceAddress : String , groupAddress : String , multicastInterface : String ): Unit =
36
+ js.native
37
+ @ enableIf(io.scalajs.nodejs.internal.CompilerSwitches .gteNodeJs12)
38
+ def addSourceSpecificMembership (sourceAddress : String , groupAddress : String ): Unit = js.native
39
+
34
40
/**
35
41
* Returns an object containing the address information for a socket. For UDP sockets,
36
42
* this object will contain address, family and port properties.
@@ -71,23 +77,27 @@ class Socket private[this] () extends IEventEmitter {
71
77
def close (callback : js.Function ): Unit = js.native
72
78
def close (): Unit = js.native
73
79
74
- @ enableIf(io.scalajs.nodejs.internal.CompilerSwitches .gteNodeJs12) def connect (port : Int ,
75
- address : String ,
76
- callback : js.Function0 [Any ]
77
- ): Unit = js.native
78
- @ enableIf(io.scalajs.nodejs.internal.CompilerSwitches .gteNodeJs12) def connect (port : Int , address : String ): Unit =
79
- js.native
80
- @ enableIf(io.scalajs.nodejs.internal.CompilerSwitches .gteNodeJs12) def connect (port : Int ,
81
- callback : js.Function0 [Any ]
82
- ): Unit = js.native
83
- @ enableIf(io.scalajs.nodejs.internal.CompilerSwitches .gteNodeJs12) def connect (port : Int ): Unit = js.native
80
+ @ enableIf(io.scalajs.nodejs.internal.CompilerSwitches .gteNodeJs12)
81
+ def connect (port : Int , address : String , callback : js.Function0 [Any ]): Unit = js.native
82
+ @ enableIf(io.scalajs.nodejs.internal.CompilerSwitches .gteNodeJs12)
83
+ def connect (port : Int , address : String ): Unit = js.native
84
+ @ enableIf(io.scalajs.nodejs.internal.CompilerSwitches .gteNodeJs12)
85
+ def connect (port : Int , callback : js.Function0 [Any ]): Unit = js.native
86
+ @ enableIf(io.scalajs.nodejs.internal.CompilerSwitches .gteNodeJs12)
87
+ def connect (port : Int ): Unit = js.native
84
88
85
89
@ enableIf(io.scalajs.nodejs.internal.CompilerSwitches .gteNodeJs12)
86
90
def disconnect (): Unit = js.native
87
91
88
92
def dropMembership (multicastAddress : String , multicastInterface : String ): Unit = js.native
89
93
def dropMembership (multicastAddress : String ): Unit = js.native
90
94
95
+ @ enableIf(io.scalajs.nodejs.internal.CompilerSwitches .gteNodeJs12)
96
+ def dropSourceSpecificMembership (sourceAddress : String , groupAddress : String , multicastInterface : String ): Unit =
97
+ js.native
98
+ @ enableIf(io.scalajs.nodejs.internal.CompilerSwitches .gteNodeJs12)
99
+ def dropSourceSpecificMembership (sourceAddress : String , groupAddress : String ): Unit = js.native
100
+
91
101
def getRecvBufferSize (): Int = js.native
92
102
def getSendBufferSize (): Int = js.native
93
103
0 commit comments