-
- All Implemented Interfaces:
-
com.facebook.react.bridge.NativeModule
,com.facebook.react.bridge.ReactModuleWithSpec
,com.facebook.react.turbomodule.core.interfaces.TurboModule
public abstract class NativeWebSocketModuleSpec extends ReactContextBaseJavaModule implements ReactModuleWithSpec, TurboModule
-
-
Constructor Summary
Constructors Constructor Description NativeWebSocketModuleSpec(ReactApplicationContext reactContext)
-
Method Summary
Modifier and Type Method Description abstract void
connect(String url, ReadableArray protocols, ReadableMap options, double socketID)
abstract void
send(String message, double forSocketID)
abstract void
sendBinary(String base64String, double forSocketID)
abstract void
ping(double socketID)
abstract void
close(double code, String reason, double socketID)
abstract void
addListener(String eventName)
abstract void
removeListeners(double count)
-
Methods inherited from class com.facebook.react.bridge.BaseJavaModule
canOverrideExistingModule, getConstants, hasConstants, initialize, invalidate, onCatalystInstanceDestroy
-
Methods inherited from class com.facebook.react.bridge.NativeModule
getName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
NativeWebSocketModuleSpec
NativeWebSocketModuleSpec(ReactApplicationContext reactContext)
-
-
Method Detail
-
connect
abstract void connect(String url, ReadableArray protocols, ReadableMap options, double socketID)
-
sendBinary
abstract void sendBinary(String base64String, double forSocketID)
-
ping
abstract void ping(double socketID)
-
addListener
abstract void addListener(String eventName)
-
removeListeners
abstract void removeListeners(double count)
-
-
-
-