Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

[Q] Is it possible to Lightroom can connect WebSocket server on localhost?

Contributor ,
Sep 27, 2017 Sep 27, 2017

Hi all,

I have current running WebSocket server on localhost.

I'd like to make Lightroom plugin that connect the server.

My understanding is following.

     * Lightroom modules cannot add third party code like LuaRocks installation.

     * Lightroom 6/CC has LrSocket and LrHttp.

Is that possible to implement WebSocket client on top or LrSocket or any other way?

Thank you,

Naoki

TOPICS
SDK
759
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 27, 2017 Sep 27, 2017

     * Lightroom modules cannot add third party code like LuaRocks installation.

You can include third-party source as long as you convert it to Lua 5.1 (if necessary) and the restricted Lua environment provided by LR (see the Lightroom SDK Guide for the restrictions).

     * Lightroom 6/CC has LrSocket and LrHttp.

Is that possible to implement WebSocket client on top or LrSocket

My brief skimming of WebSocket is that it is a bidirectional, non-HTTP protocol (that starts with an HTTP handshake).  Unfortunately, each instance of LrSocket is one-way (send or receive).  So I don't see how it could be used to implement WebSocket.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Sep 28, 2017 Sep 28, 2017
LATEST

johnrellis, thank you very much for your input. I think similar way but still look for solutions.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines