Websocket Server Proxy for Cross-Device Application Communication
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current methods for communication between applications running on different devices connected to the same network lack efficient bidirectional data exchange, as they do not effectively utilize websocket protocols designed for server-client communication.
Innovation Solution
Implementing a websocket server on a first device to facilitate communication between applications on different devices by acting as a proxy, enabling data transmission and reception through the websocket protocol, allowing for remote control and input manipulation between devices.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Productivity
If websocket communication protocol is applied to applications on different devices, then bidirectional real-time data exchange is enabled, but device complexity and communication setup difficulty increase
Solution Approach 1:
A websocket server is deployed as an intermediary component on one of the devices to facilitate communication between applications on different devices. The server manages the websocket connections, handles data routing, and abstracts the complexity of bidirectional communication protocols from the client applications, enabling efficient real-time data exchange without requiring each application to implement complex communication logic.
2Reliability
If websocket server is deployed on each device for peer-to-peer communication, then communication reliability improves, but device resources and system complexity increase
Solution Approach 1:
The websocket server is designed with multi-functionality to handle various communication scenarios. It can serve multiple clients simultaneously, support both request-response and event-driven communication modes, and provide features like connection management, data routing, and error handling. This universal design allows a single server instance to reliably facilitate communication between applications on different devices without requiring redundant server deployments on each client device.
Data Source
AI summary
A method for providing communication between application programs running via devices connected to a same network is provided. The method includes an operation for connecting a first application program, which is running in a first device via a web socket server in the first device, with a second application program, which is running in a second device, and an operation for transmitting and receiving data between the second application program and the first application program via the web socket server.


