How can I access a socket through Openshift

I will register on Openshift.com and create katra. But when I need to deploy Mosquitto, an MQTT server accessed via tcp or ssl, and I need to visit the public IP address. Does Openshift only open http / https protocol forwarding through port 80/443 to 8080? Can I use socket switching in Openshift?

I created two applications in Openshift, one for push and one for web deployment, and I stopped the apache service so that the mosquitto service listened to 8080. But only if I send a post request to the https protocol, It can temporarily access the server and disconnect.

+4
source share
2 answers

I think this may indicate the right direction https://www.openshift.com/blogs/paas-websockets .

+1
source

To preserve some of the testimony of readers, the steps related to niharvey answer:

  • Create a diy application in your openshift account.
  • Git check the code.
  • Add the websocket app of your choice to be bound to $OPENSHIFT_DIY_IP:$OPENSHIFT_DIY_PORT.
  • Change the actions to start and stop the application. Click the code.
  • From the client, connect to the port 8000for ws://or 8443for wss://at the URL of your application.

Just check how these steps work properly.

0
source

All Articles