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.
https://github.com/tootallnate/java-websocket/wiki#user-content-client-example
processing - how send data (through websockets?) javascript application
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
Post a Comment