Skip to content

A simple SSAP (LG Connnect App) protocol client, right in the browser!

License

Notifications You must be signed in to change notification settings

throwaway96/webos-ssap-web

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ssap-web

A hacky implementation of webOS remote control API on the web.

Instructions

Save a copy of this repo locally (e.g. by cloning the repo or downloading it as a zip file). Then open index.html in a web browser. Chrome/Chromium gets the most testing, but Firefox should work as well.

How it works

By default a server implementing SSAP on webOS prevents web origins from accessing its websocket. However there are exceptions to allow communication from chrome extensions and file:// origins. Both file:// and data: origins present themselves to remote server as Origin: null. We use that to allow http-based origin to communicate with SSAP server using a hidden iframe with src="data:..." communicating back and forth with the main http:// frame. This is implemented in wsproxy.js.

Limitations

Currently this client can't be effectively used on https:// origins due to mixed content security policies. Alternatively, user can be requested to manually approve self-signed certificate used for wss://:3001 server exposed by webOS.

License

This software is licensed under the GNU Affero General Public License, version 3 or later. A copy of the GNU AGPL is included as COPYING.

Credits

Derived from webos-ssap-web, copyright Piotr Dobrowolski.

Remote UI by simon_34545.

About

A simple SSAP (LG Connnect App) protocol client, right in the browser!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages

  • JavaScript 84.5%
  • HTML 15.5%