Socket
A Socket which connects to a Phoenix Server. Takes a constant parameter to be sent to the server when connecting. Defaults to null if excluded.
Example
val socket = Socket("https://example.com/socket", mapOf("token" to mAuthToken))Parameters
Url to connect to such as https://example.com/socket
Constant parameters to send when connecting. Defaults to null
JSON Serializer version to use. Defaults to 2.0.0
Optional. Provide a custom JSON encoding implementation
Optional. Provide a custom JSON decoding implementation
Default OkHttpClient to connect with. You can provide your own if needed.
Parameters
Url to connect to such as https://example.com/socket
Closure which allows to change parameters sent during connection.
JSON Serializer version to use. Defaults to 2.0.0
Optional. Provide a custom JSON encoding implementation
Optional. Provide a custom JSON decoding implementation
Default OkHttpClient to connect with. You can provide your own if needed.