You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -63,26 +64,13 @@ Most of the APIs are the same as socket.io-client-java, here are some difference
63
64
- Create socket is asynchronous, to make it's easier to guarantee thread safety.
64
65
- Binary messages can't be nested, because `emit` only accepts String/Boolean/Number/JsonElement/ByteString, other types will be converted to String using `toString()`, so there is no way to put ByteString in JsonElement.
65
66
66
-
### Set logging callback
67
-
68
-
```kotlin
69
-
Logger.setLogger(object:LoggerInterface {
70
-
overridefundebug(tag:String, log:String) {
71
-
TODO("Not yet implemented")
72
-
}
73
-
74
-
overridefuninfo(tag:String, log:String) {
75
-
TODO("Not yet implemented")
76
-
}
77
-
78
-
overridefunerror(tag:String, log:String) {
79
-
TODO("Not yet implemented")
80
-
}
81
-
})
82
-
```
67
+
### Logging with [kmp-xlog](https://github.com/HackWebRTC/kmp-xlog)
83
68
84
69
## Example
85
70
71
+
Before running examples, run `node kmp-socketio/src/jvmTest/resources/socket-server.js` to start the socket-io echo server,
72
+
and update the local IP address in `example/shared/src/commonMain/kotlin/com/piasy/kmp/socketio/example/Greeting.kt`.
73
+
86
74
### Android
87
75
88
76
Open the project (the repo root dir) in Android studio, and run the example.androidApp target.
@@ -105,6 +93,8 @@ Use Chrome CORS Unblock extension to workaround with CORS error.
105
93
106
94
### WASM JS
107
95
96
+
Use Chrome CORS Unblock extension to workaround with CORS error.
0 commit comments