Skip to content

Commit 214853e

Browse files
committed
feat: add path option
1 parent a8ce845 commit 214853e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

android/src/main/java/com/reactnativesocketio/SocketIoModule.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ class SocketIoModule(private val reactContext: ReactApplicationContext) : ReactC
107107
options.getString("query").let { socketOptions.query = it }
108108
}
109109

110+
if(options.hasKey("path")) {
111+
options.getString("path").let { socketOptions.path = it }
112+
}
113+
110114
callbackRegisters.clear()
111115

112116
mSocket?.off()

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export type SocketIOOptions = {
1818
randomizationFactor?: number;
1919
timeout?: number;
2020
query?: string;
21+
path?: string;
2122
};
2223

2324
export type SocketIOEventData = any;

0 commit comments

Comments
 (0)