{"size": 425, "ext": "js", "max_stars_repo_path": "src/api.js", "max_stars_repo_name": "djcruz93/Rocket.Chat-LiveChat", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/api.js", "max_issues_repo_name": "djcruz93/Rocket.Chat-LiveChat", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/api.js", "max_forks_repo_name": "djcruz93/Rocket.Chat-LiveChat", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 42.5, "max_line_length": 82, "alphanum_fraction": 0.7129411765}
import LivechatClient from './../../Rocket.Chat.js.SDK/dist/lib/clients/Livechat';
import queryString from 'query-string';

const host = window.SERVER_URL
	|| queryString.parse(window.location.search).serverUrl
	|| (process.env.NODE_ENV === 'development' ? 'http://localhost:3000' : null);
const useSsl = host && host.match(/^https:/) !== null;

export const Livechat = new LivechatClient({ host, protocol: 'ddp', useSsl });
