create Web Socket

inline fun <socketService : Any> createWebSocket(okhttp: OkHttpClient, url: String): socketService

method to build webSocket service

Author

Jimly A.

Since

01-Nov-21

Return

instance of socketService used for the webSocket

Parameters

socketService

SocketService that implemented the endpoints

okhttp

the OkHttpClient instance for current app

url

base url for the webSocket

Sources

Link copied to clipboard