# Rocket.chat.Livechat how to use param "/livechat/1.0/"

**URL:** <https://forums.rocket.chat/t/rocket-chat-livechat-how-to-use-param-livechat-1-0/3758>\
**Category:** Development\
**Created:** [May 8, 2019, 7:07am UTC](https://forums.rocket.chat/t/rocket-chat-livechat-how-to-use-param-livechat-1-0/3758 "2019-05-08T07:07:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thangse](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/thangse/32/974_2.png) [@thangse](https://forums.rocket.chat/u/thangse)\
**Post date:** [May 8, 2019, 7:07am UTC](https://forums.rocket.chat/t/rocket-chat-livechat-how-to-use-param-livechat-1-0/3758/1 "2019-05-08T07:07:46Z")

</div>

Hi all,

I had build project [https://github.com/RocketChat/Rocket.Chat.Livechat](https://github.com/RocketChat/Rocket.Chat.Livechat) with code “yarn start”, it so oke. However I want to use code javascript

```
(function(w, d, s, u) {
		w.RocketChat = function(c) { w.RocketChat._.push(c) };
		w.RocketChat._ = [];
		w.RocketChat.url = u;
		var h = d.getElementsByTagName(s)[0],
			j = d.createElement(s);
		j.async = true;
		j.src = 'http://localhost:8080/livechat/1.0/rocketchat-livechat.min.js?_=' + Math.random();
		h.parentNode.insertBefore(j, h);
})(window, document, 'script', 'http://localhost:8080/livechat?version=1.0');

```

Error url not found “[http://localhost:8080/livechat/1.0/rocketchat-livechat.min.js](http://localhost:8080/livechat/1.0/rocketchat-livechat.min.js)”

how to use Url it? please help me

---

<div class="post-metadata">

**Author:** ![aaron.ogle](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/aaron.ogle/32/15_2.png) [@aaron.ogle](https://forums.rocket.chat/u/aaron.ogle)\
**Post date:** [May 9, 2019, 2:58am UTC](https://forums.rocket.chat/t/rocket-chat-livechat-how-to-use-param-livechat-1-0/3758/2 "2019-05-09T02:58:45Z")

</div>

I’ve invited one of the guys that works on this to the thread.

But, I think it has something to do with the src. I think have to change to a path that yarn is actually serving up.

---

<div class="post-metadata">

**Author:** ![thangse](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/thangse/32/974_2.png) [@thangse](https://forums.rocket.chat/u/thangse)\
**Post date:** [May 9, 2019, 3:21am UTC](https://forums.rocket.chat/t/rocket-chat-livechat-how-to-use-param-livechat-1-0/3758/3 "2019-05-09T03:21:22Z")

</div>

you can guide me? I used npm install, it will error don’t start app

---

<div class="post-metadata">

**Author:** ![renato.becker](https://sea1.discourse-cdn.com/flex021/user_avatar/forums.rocket.chat/renato.becker/32/532_2.png) [@renato.becker](https://forums.rocket.chat/u/renato.becker)\
**Post date:** [May 9, 2019, 3:00pm UTC](https://forums.rocket.chat/t/rocket-chat-livechat-how-to-use-param-livechat-1-0/3758/4 "2019-05-09T15:00:43Z")

</div>

Is not **1.0** , is **1.0.0**.  
Please, change the url path and try again.  
Other important thing: **[http://localhost:8080](http://localhost:8080)** is where you’re running the livechat as a standalone application, so you need to change the bundle url path, addressing to your Rocket.Chat url, like:  
**j.src = ‘[http://localhost:3000/livechat/1.0.0/rocketchat-livechat.min.js?\_=](http://localhost:3000/livechat/1.0.0/rocketchat-livechat.min.js?_=)’ + Math.random();**
