How can I access socket through Openshift

前端 未结 2 1065
我寻月下人不归
我寻月下人不归 2021-01-13 17:20

I register in the Openshift.com and create a catridge. But when I need to deploy Mosquitto, a MQTT Server, which is accessed through tcp or ssl protocol, and I need visit fr

2条回答
  •  北海茫月
    2021-01-13 17:54

    To save some readings from the readers, the steps involved in niharvey's answer:

    • Create a diy app in your openshift account.
    • Git checkout the code.
    • Add a websocket app of your own choice that would bind to $OPENSHIFT_DIY_IP:$OPENSHIFT_DIY_PORT.
    • Modify the action hooks for starting and stopping your app. Push the code.
    • From the client, connect to port 8000 for ws:// or 8443 for wss://, by your app url.

    Just verified these steps do work as expected.

提交回复
热议问题