We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8ce845 commit 214853eCopy full SHA for 214853e
android/src/main/java/com/reactnativesocketio/SocketIoModule.kt
@@ -107,6 +107,10 @@ class SocketIoModule(private val reactContext: ReactApplicationContext) : ReactC
107
options.getString("query").let { socketOptions.query = it }
108
}
109
110
+ if(options.hasKey("path")) {
111
+ options.getString("path").let { socketOptions.path = it }
112
+ }
113
+
114
callbackRegisters.clear()
115
116
mSocket?.off()
src/index.tsx
@@ -18,6 +18,7 @@ export type SocketIOOptions = {
18
randomizationFactor?: number;
19
timeout?: number;
20
query?: string;
21
+ path?: string;
22
};
23
24
export type SocketIOEventData = any;
0 commit comments