WebSocket connection via GSM with SSL

Hello!

Need to make a WebSocket connection with SSL to NodeJS server via GSM module. Can you help me please with some questions:

  1. What GSM module is better for this kind of communication? (need LTE, but only 3G must be cheaper)

  2. What WebSocket library is better?

Tips and links are welcome! )

Need to make a WebSocket connection with SSL to NodeJS server via GSM module. Can you help me please with some questions:

Why? WebSockets are a technology for web browsers, they are a very bad choice for embedded devices.

Please specify the reasons why you chose WebSockets, other than it's one of the current buzzwords.

The only reason is that I worked with browsers and not with Arduino.
I want to create a two way secure connection for asynchronous communication between my webserver and Arduino device.
Can you advise me some bestpracticies for this task?

I want to create a two way secure connection for asynchronous communication between my webserver and Arduino device.

Websocket servers are not web servers even if a web server might be used to proxy the connection.

Any TLS secured TCP connection would fit for that task.

If you describe your communication task in more detail we might suggest a protocol that fit your needs.

  1. What GSM module is better for this kind of communication?

Better than? Same applies for your second question.

(need LTE, but only 3G must be cheaper)

What now? Do you need LTE or 3G?

pylon:
If you describe your communication task in more detail we might suggest a protocol that fit your needs.

It'is thery simple communication. My server will send 1 type command to some hardware. Hardware must reply that it was completed successfully or not.

In addition I want to indicate (using leds mb) the connection status (online | offline)

pylon:
What now? Do you need LTE or 3G?

Cheaper option with good libraries

My server will send 1 type command to some hardware. Hardware must reply that it was completed successfully or not.

So it's not a complete two way communication. A simple HTTP based protocol would suit that need, an even simpler TCP+TLS connection would do the job too. My favorite for such tasks is MQTT.

Define what a "secure connection" is in your eyes. The above description doesn't show a need for encryption on the line as there isn't any authentication.

Cheaper option with good libraries

Way too many options. The Arduino MKR 1400 GSM is quite well supported by libraries.

pylon:
So it's not a complete two way communication. A simple HTTP based protocol would suit that need, an even simpler TCP+TLS connection would do the job too. My favorite for such tasks is MQTT.

Define what a "secure connection" is in your eyes. The above description doesn't show a need for encryption on the line as there isn't any authentication.

My Arduino device will control some vending like machine, so I want to check certificates on the both sides of the connection. Moreother I think that encryption will be good choice for this task.