java websocket client does not connect -


i'm trying connect ethernet module via websocket protocol. i've connected module using javascript , nodejs. want create standalone application using java.

i use following library https://github.com/tootallnate/java-websocket , conected nodejs socket server succesfully. same code fails connect said ethernet module, connected via javascript , node js.

i've tried both of these sample codes.

log successful connection:

write(153): {get / http/1.1 host: localhost:9991 upgrade: websocket connection: upgrade sec-websocket-version: 13 sec-websocket-key: tjqdsjtjlaonzw5lzph3pa==  } process(129): {http/1.1 101 switching protocols upgrade: websocket connection: upgrade sec-websocket-accept: 4s+ufw9gnz7icnrle0ak5ohjl00=  } open using draft: draft_17 

log failed connection:

write(157): {get / http/1.1 host: 192.168.1.10:6432 upgrade: websocket connection: upgrade sec-websocket-version: 13 sec-websocket-key: zqmlepwv8lqyusglz/qx2q==  } 


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -