1 Which version of web socket does Ignition support JSR or Jetty?
2. What are the maven dependencies for this version in Ignition sdk?
3. Where is the link to the Ignition java class library documentation on line?
4. from which version of Ignition onwards is this supported? (I guess 7.7 onwards)?
while trying to import with “import.javax.websocket.*” in my code, I get error “package websocket doesnot exist”, even including individual classes gives same error. I am trying to establish communication with NJSCADA.
We don’t export any of the WebSocket APIs in a way that you can see them as a module author.
The latest version of 7.9 uses Jetty 9.3.8. You might be able to add these dependencies, using provided scope to indicate they’re already going to be on the class path and don’t need to be packaged in your module:
.[quote="Kevin.Herron, post:5, topic:19215"]
The javax.websocket.* import isn't going to work because we don't include or use the JSR 356 WebSocket API.
[/quote]
I am trying only server side functionality in my module.[quote="Kevin.Herron, post:5, topic:19215"]
We don't export any of the WebSocket APIs in a way that you can see them as a module author.
[/quote]
got it.
Though I have installed 7.9 version on my development system, but will it not work on older version like 7.7 & 7.8 of Ignition? I guess it was introduced in version 7.7 as presented in 2015 ICC presentation by Colby if I remember.
Oh I didn’t notice the difference!. Sorry about that.
Thanks a lot, I will try to include them in the classpath.
I will change the Ignition version number in dependencies to 7.7 or 7.8 and try.
Thanks a lot Kevin. Let me first start with Jetty as its readily available in In jetty. Hope fully it will be compatible with industry standard as I want to communicate with NJSCADA!
I created jetty ws server in my module, while accessing it from from a browser on 8088 (ignition) port, I get following error:
webSocket connection to ‘ws://localhost:8088/test’ failed: Error during WebSocket handshake: Unexpected response code: 302
With 8080 portI get different error:
WebSocket connection to ‘ws://localhost:8080/test’ failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
Should the jetty server (Ignition gateway server) be restarted after installing my module for the servlet to get registered? I tried that but doesn’t help.
Will the ws client work only under an Ignition client session? Otherwise how does it get the http session for handshake to convert to ws client? I should also be able to access the ws server from a non browser client as well. How does ignition EAM module work?