Skip to content

Commit 5eb8513

Browse files
committed
fix: send event with no payload
1 parent bec64cf commit 5eb8513

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ class SocketIoModule(private val reactContext: ReactApplicationContext) : ReactC
133133

134134
else -> mSocket?.emit(eventName, options.getString("data")!!)
135135
}
136+
} else {
137+
mSocket?.emit(eventName)
136138
}
137139
}
138140

0 commit comments

Comments
 (0)