websocket - Socket between browser and iOS devices -


we have proprietary template format rendering articles. have written editor in html editing this. while editing/writing template want live preview of results directly on different ios , android devices through custom app we've made preview.

enter image description here

it seems redundant have server in between browser , preview-app if possible browser connect directly , have multiple sockets devices.

so guess question browser preview-app have no problem setup.

if html editor in browser , app on smartphone, unlikely can connect directly browser smartphone.

from browser, have 2 connection options: ajax request or websocket. and, need able connect either public dns name or known ip address configured incoming connections. smartphone not have either public dns name or known ip address.

if tried make connection other way smartphone apps browser, can't that. browser web pages don't accept incoming connections , behind firewall block incoming http connections anyway.

this why 2 endpoints connected via sort of intermediary server or @ least use intermediary server facilitate connection.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -