Unity standalone application communicates with HTML in real time ? is it possible ?

Hello, i have an odd question:
whether it is possible to setup a communication between a running Unity3D standalone application (not embedded web application contains Unity app) and an HTML webpage (running on the same localhost) ? to change some parameters during the game play.

How Can I Achieve this ?
some ideas should be:

  • send UPD message from HTML page to Unity3D application ?
    or
  • reading some localfile / SQL database in real-time ?

what is the best solid solution ? thanks for sharing your ideas.

I answer myself : using Websocket should be one solution.