or maybe even this: ```socket.run { on(Socket.EVE...
# codingconventions
c
or maybe even this:
Copy code
socket.run {
	on(Socket.EVENT_CONNECT) { data ->
		data.print("Socket Connect")
		socket.emit("login", "{\"bearer_token\": \"${prefs.authToken}\"}")
	}
	on("login_response") { data ->
		data.print("Login Response")
		emitSubscribe()
		mConnectionStatus.postValue(true)
	}
	on("subscribe_response") { data ->
		data.print("Subscribe Response")
	}
	on(Socket.EVENT_DISCONNECT) { data ->
		data.print("Socket Disconnect")
		socket.connect()
	}
}