# Scope of gateway event scripts on Ignition Edge

**URL:** <https://forum.inductiveautomation.com/t/scope-of-gateway-event-scripts-on-ignition-edge/35905>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [June 23, 2020, 11:09am UTC](https://forum.inductiveautomation.com/t/scope-of-gateway-event-scripts-on-ignition-edge/35905 "2020-06-23T11:09:46Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nok](https://avatars.discourse-cdn.com/v4/letter/n/8c91f0/32.png) [@nok](https://forum.inductiveautomation.com/u/nok)\
**Post date:** [June 23, 2020, 11:09am UTC](https://forum.inductiveautomation.com/t/scope-of-gateway-event-scripts-on-ignition-edge/35905/1 "2020-06-23T11:09:46Z")

</div>

Hi all

I developed a project on a standard Ignition 8.0 gateway. The project includes a TCP server implemented in the gateway startup script and with calls from the components scripts to functions defined in the gateway startup script. This worked fine. I then took a backup of the project and uploaded it to an Ignition Edge Gateway with the WebDev module installed (for the gateway scripts). However it seems that I cannot reference any functions in the Gateway startup script from my component scripts and vice-versa. Are the scripts run in two different scopes on Ignition Edge? Or are there another explanation.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [June 23, 2020, 11:40am UTC](https://forum.inductiveautomation.com/t/scope-of-gateway-event-scripts-on-ignition-edge/35905/2 "2020-06-23T11:40:00Z")

</div>

Do you have a version of Edge that allows gateway scripting? I think it’s the “Compute” edition?

---

<div class="post-metadata">

**Author:** ![nok](https://avatars.discourse-cdn.com/v4/letter/n/8c91f0/32.png) [@nok](https://forum.inductiveautomation.com/u/nok)\
**Post date:** [June 23, 2020, 12:00pm UTC](https://forum.inductiveautomation.com/t/scope-of-gateway-event-scripts-on-ignition-edge/35905/3 "2020-06-23T12:00:26Z")

</div>

Yes. I installed the WebDev module which according to the documentation should contain the Compute module. Is it a different version of Ignition Edge? I thought it was just another module??

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [June 23, 2020, 12:01pm UTC](https://forum.inductiveautomation.com/t/scope-of-gateway-event-scripts-on-ignition-edge/35905/4 "2020-06-23T12:01:32Z")

</div>

The edition is determined by a flag in the license you apply to your Edge gateway.

---

<div class="post-metadata">

**Author:** ![nok](https://avatars.discourse-cdn.com/v4/letter/n/8c91f0/32.png) [@nok](https://forum.inductiveautomation.com/u/nok)\
**Post date:** [June 23, 2020, 12:03pm UTC](https://forum.inductiveautomation.com/t/scope-of-gateway-event-scripts-on-ignition-edge/35905/5 "2020-06-23T12:03:42Z")

</div>

Oh… My Ignition isn’t licensed in anyway. Just the trial version with the WebDev module installed. Does it need to be licensed before I can use the gateway scripts?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [June 23, 2020, 12:04pm UTC](https://forum.inductiveautomation.com/t/scope-of-gateway-event-scripts-on-ignition-edge/35905/6 "2020-06-23T12:04:48Z")

</div>

Hmm. It might need to be licensed.

I think you misunderstood the documentation - the Web Dev module does not unlock the gateway scripting or “compute” edition; the “compute” edition unlocks gateway scripting and _allows_ WebDev to be used and licensed as well.

---

<div class="post-metadata">

**Author:** ![nok](https://avatars.discourse-cdn.com/v4/letter/n/8c91f0/32.png) [@nok](https://forum.inductiveautomation.com/u/nok)\
**Post date:** [June 23, 2020, 12:14pm UTC](https://forum.inductiveautomation.com/t/scope-of-gateway-event-scripts-on-ignition-edge/35905/7 "2020-06-23T12:14:23Z")

</div>

Ah, OK. I must have misunderstood the documentation. Also because the gateway scripts was in fact executed but the user-functions that I defined in the project library couldn’t be reference from the gateway scripts.  
I believe my company already have a license for Ignition Edge + compute. I see if I can borrow it.  
Thanks
