# US 2016/0261720 A1 · Event service for local client applications through local server

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2016/0261720 A1
- Document ID: US20160261720A1
- Status: Published application
- Kind: A1
- Application number: 15/156,842
- Filed: 2016-05-17
- Published: 2016-09-08
- Earliest claimed: 2011-10-11
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Avi Bar-Zeev; Gur Kimchi; Brian C. Beckman; Scott Isaacs; Meir Ben-Itay; Eran Yariv; Blaise Aguera y Arcas
- Web page: https://patentgrep.com/patent/US20160261720A1

## CPC

- G06F 1/3215: Monitoring of peripheral devices
- G06F 1/3203: Power management, i.e. event-based initiation of a power-saving mode
- H04L 67/02: based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L 67/34: {involving the movement of software or configuration parameters (network booting or remote initial program loading [RIPL] G06F9/4416)}
- H04L 67/60: Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources (admission control or resource allocation H04L47/70)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

In server/client architectures, the server application and client applications are often developed in different languages and execute in different environments specialized for the different contexts of each application (e.g., low-level, performant, platform-specialized, and stateless instructions on the server, and high-level, flexible, platform-agnostic, and stateful languages on the client) and are often executed on different devices. Convergence of these environments (e.g., server-side JavaScript using Node.js) enables the provision of a server that services client applications executing on the same device. The local server may monitor local events occurring on the device, and may execute one or more server scripts associated with particular local events on behalf of local clients subscribing to the local event (e.g., via a subscription model). These techniques may enable development of local event services in the same language and environment as client applications, and the use of server-side code in the provision of local event service.

## Claims

### Claim 1

A method of fulfilling requests on a first device having a processor executing a local server application, comprising:
receiving, by a local server application, an event subscription request from a remote client application being executed on a second device;
detecting, at the first device, a local event that is
associated with the event subscription request and
one to which the remote client application is subscribed; and
executing, within the local server application and on behalf of the remote client application, one or more server scripts associated with the local event, after the detecting.

### Claim 2 (depends on 1)

The method of claim 1, further comprising receiving an event subscription request from a local client application executing on the first device.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
detecting, at the first device, a local event to which the local client application is subscribed; and
executing, within the local server application and on behalf of the local client application, one or more server scripts associated with the local event to which the local client application is subscribed.

### Claim 4 (depends on 2)

The method of claim 2, wherein the event subscription request from a local client application specifies a target to the local server application.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
presenting the event subscription request to the local server, when the target is determined to be the local server application; and
sending the event subscription request to a remote server application, which is remote from the first device, when the target is determined to be the remote server application.

### Claim 6 (depends on 3)

The method of claim 3, further comprising notifying the local client application of completion of the one or more server scripts, upon completion of the one or more server scripts.

### Claim 7 (depends on 1)

The method of claim 1, further comprising adjusting execution of the local server application to conserve resources of the first device.

### Claim 8

A method of fulfilling requests on a first device having a processor executing a local server application, the method comprising:
receiving, by the local server application, an event subscription request from a remote client application executing on a second device;
detecting, at the first device, a local event that is associated with the event subscription request and to which the remote client application is subscribed; and
executing, within the local server application, one or more server scripts associated with the local event on behalf of the remote client application.

### Claim 9 (depends on 8)

The method of claim 8, further comprising receiving an event subscription request from a local client application executing on the first device.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
detecting, at the first device, a local event to which the local client application is subscribed; and
executing, within the local server application, one or more server scripts associated with the local event to which the local client application is subscribed on behalf of the local client application.

### Claim 11 (depends on 9)

The method of claim 9, wherein the event subscription request from a local client application specifies a target to the local server application.

### Claim 12 (depends on 11)

The method of claim 11, further comprising:
when the target is determined to be the local server application, presenting the event subscription to the local server application; and
when the target is determined to be a remote server application, sending the event subscription request to the remote server application, which is remote from the first device.

### Claim 13 (depends on 10)

The method of claim 10, further comprising notifying the local client application of a completion of the one or more server scripts, upon the local server application achieving completion of the one or more server scripts associated with the local event.

### Claim 14 (depends on 1)

The method of claim 1, further comprising adjusting execution of the local server application to conserve resources of the first device.

### Claim 15

A system, comprising:
a first device having a processor that executes a local server application; and
a second device that is remote from the first device and that executes a remote client application;
wherein the local server application, when executed, receives an event subscription request from the remote client application,
wherein the first device detects a local event at the first device, the local event being (i) associated with the event subscription request and (ii) one to which the remote client application is subscribed, and
wherein the local server application, executes within the local server application and on behalf of the remote client application, one or more server scripts associated with the local event, when a local event is detected.

### Claim 16 (depends on 15)

The system of claim 15, wherein execution of the local server application is adjusted to conserve resources of the first device by one or more of a limited-capacity battery constraint and a low wattage power constraint.

### Claim 17 (depends on 15)

The system of claim 15, wherein, before the local event is detected, power to at least one processing component of the first is reduced, and
wherein, upon detection of the local event, power to the at least one processing component is restored.

### Claim 18 (depends on 15)

The method of claim 15, wherein the first device executes a local client application that, when executed, outputs an event subscription request specifying at least one selected local event,
wherein the first device detects an occurrence of the at least one local event, and
wherein, after the occurrence is detected, the local server application executes one or more server scripts associated with the at least one local event to which the local client application is subscribed, on behalf of the local client application.

### Claim 19 (depends on 18)

The system of claim 18, wherein, upon completion of the one or more server scripts, the local client application is notified of a completion of the one or more server scripts.

### Claim 20 (depends on 15)

The system of claim 15, wherein the event subscription request is associated with a client user interface event.
