Skip to main content

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

Richard

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

Richard

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.