javascript - netty secure websockets using http.. possible? -


i have configured websocket connection following example:

https://github.com/netty/netty/tree/3/src/main/java/org/jboss/netty/example/http/websocketx/sslserver

this works, have browser connecting secured websocket using https address.

 $(document).ready(function () {              var location = "wss://localhost:9999/websocket"              ws = new websocket(location);             ws.onopen = function(event) {               }                        ws.onclose = function(event) {               }              ws.onmessage = function(event) {                }         }); 

i want connect page makes websocket connection using http?... possible ?... have tried this, , doesn't seem work.. im not sure...

i have read possible create wss connection when regardless of going page using http or https?.. correct?


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -