Using a different WebSocketsClient class depending on the target platform is really painful. Each platform should provide their own WebSocketsClientFactory class, which will be used by TrackerClient to create a new WebSocketsClient.