Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
richardpoulson Contributor.

Connecting to a websocket

Hi Guys

I need to connect to a websocket, I am using NetExpress 5.1, is there any embedded code withing the COBOL 5.1 for this, or do I have to call an external API (of some kind) from my COBOL program to support this function.

I think thi smay be available in Visual COBOL, just want to know if there is anything in 5.1.

Many Thanks


1 Reply
Micro Focus Expert
Micro Focus Expert

Re: Connecting to a websocket

Technically, there is no such thing as "a websocket". There's the WebSocket protocol, defined by RFC 6455; and the WebSocket API, standardized by the W3C for using WebSocket from Javascript in browsers. You need to provide more information about the problem you're trying to solve. That said: NetExpress 5.1 does not provide an API for network communications that's documented for customer use. It has a feature for invoking SOAP Web Services over HTTP(S), but nothing more general than that. There's no support for WebSocket in Visual COBOL or Enterprise Developer either. WebSocket is used almost exclusively between Javascript RIAs (applications running in a browser or a browser-derived runtime such as Electrum) and HTTP servers.
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.