Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

How to implement a WebSocket connection

Solved1.75K views29th April 2021connection new driver development TCP/IP WebSocket
2
MiguelGU Guevara [SLC]10 27th April 2021 0 Comments

My job is to implement a secure WebSocket connection. The first thing I wanted to do is to implement a WebSocket connection but according to the DataMiner Development Library (Section 4.7.2 Implementing a WebSocket), a Connection tag must be included inside the Protocol.Connections tag. The problem with this is that when adding the Protocol.Connections tag, it seems like DIS no longer supports this tag because it does not give me the option to add the tag.
Is there another way to implement this and can you show me an example?
Or Is there a workaround?

Please and thank you!

MiguelGU Guevara [SLC] Edited question 29th April 2021

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
7
João Severino [SLC] [DevOps Catalyst]13.09K Posted 27th April 2021 3 Comments

Hi Miguel,

The syntax described in the DataMiner Development Library is correct, it is just that DIS currently does not contain the schema definition for it and as such it will appear as if it is not supported in Visual Studio

You can see an example of how it looks like in the screenshot bellow

Do note that the first connection is a regular HTTP connection and the second is a WebSocket one

MiguelGU Guevara [SLC] Edited comment 29th April 2021
MiguelGU Guevara [SLC] commented 28th April 2021

Hi Joao, I have a follow-up question.
Your answer was very helpful, However, I cannot get the connection to open. I can see that there is some information exchange on Wireshark but the status of the WebSocket Status is shown as “Closed”.
The connection is using WSS (secure websocket protocol) so I can’t identify anything on Wireshark, URL is “wss://137.237.176.76/smm”.
Is there a way to debug this to find out what might be going wrong, or is there a way to see what DataMiner is sending and what is receiving?

Miguel Garrido [SLC] [DevOps Member] commented 29th April 2021

Hi Miguel,

When I implemented a similar webSocket connection to yours I used a WebsocketHandshake Http Get Request with the KeepAlive option.

Using your URL, the path used in my Http Get Request would be “/smm” while the “wss://137.237.176.76” would be the “IP Address/host” specified in the Element creation for the webSocket Connection.

MiguelGU Guevara [SLC] commented 29th April 2021

Hi Miguel Garrido,
Thank you very much for showing me your whole implementation of the driver you worked on. The connection is now working, the issue was on the url attribute of the HTTP.Session.Connection.Request for the custom handshake. I had value “/smm” and when I changed that to an integer value “89”, which is the PID of a string parameter holding DefaultValue “/smm” then it was able to open the connection.

Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs