---
lang: en
title: 'API docs: context.context.on_1'
keywords: LoopBack 4.0, LoopBack 4, Node.js, TypeScript, OpenAPI
sidebar: lb4_sidebar
editurl: https://github.com/strongloop/loopback-next/tree/master/packages/context
permalink: /doc/en/lb4/apidocs.context.context.on_1.html
---

<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@loopback/context](./context.md) &gt; [Context](./context.context.md) &gt; [on](./context.context.on_1.md)

## Context.on() method

<b>Signature:</b>

```typescript
on(event: string | symbol, listener: (...args: any[]) => void): this;
```

## Parameters

|  Parameter | Type | Description |
|  --- | --- | --- |
|  event | string \| symbol |  |
|  listener | (...args: any\[\]) =&gt; void |  |

<b>Returns:</b>

this


