Socket
actual fun Socket(url: String, params: Payload?, vsn: String = Defaults.VSN, encode: EncodeClosure = Defaults.encode, decode: DecodeClosure = Defaults.decode, scope: CoroutineScope)
Content copied to clipboard
actual fun Socket(url: String, paramsClosure: PayloadClosure, vsn: String = Defaults.VSN, encode: EncodeClosure = Defaults.encode, decode: DecodeClosure = Defaults.decode, scope: CoroutineScope)
Content copied to clipboard
expect fun Socket(url: String, params: Payload?, vsn: String = Defaults.VSN, encode: EncodeClosure = Defaults.encode, decode: DecodeClosure = Defaults.decode, scope: CoroutineScope)
Content copied to clipboard
expect fun Socket(url: String, paramsClosure: PayloadClosure, vsn: String = Defaults.VSN, encode: EncodeClosure = Defaults.encode, decode: DecodeClosure = Defaults.decode, scope: CoroutineScope)
Content copied to clipboard
Parameters
url
Url to connect to such as https://example.com/socket
paramsClosure
Closure which allows to change parameters sent during connection.
vsn
JSON Serializer version to use. Defaults to 2.0.0
encode
Optional. Provide a custom JSON encoding implementation
decode
Optional. Provide a custom JSON decoding implementation
actual fun Socket(url: String, params: Payload?, vsn: String = Defaults.VSN, encode: EncodeClosure = Defaults.encode, decode: DecodeClosure = Defaults.decode, scope: CoroutineScope)
Content copied to clipboard
actual fun Socket(url: String, paramsClosure: PayloadClosure, vsn: String = Defaults.VSN, encode: EncodeClosure = Defaults.encode, decode: DecodeClosure = Defaults.decode, scope: CoroutineScope)
Content copied to clipboard