Re: [Dev] [Jaggery] Web sockets api in jaggery

2016-05-20 Thread Danushka Fernando
Its not an html its a json. Any way found a way to implement my task without web socket. Thanks & Regards Danushka Fernando Senior Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Fri, May 20, 2016 at 7:35 PM, Manuranga Perera wrote: > Hi, > Seems like there

Re: [Dev] [Jaggery] Web sockets api in jaggery

2016-05-20 Thread Manuranga Perera
Hi, Seems like there is some issue with setting up the request level variables when you reach from Web Socket path, looks like a bug. But I am trying to understand why you are trying to return HTML from a Web Socket. Shouldn't you be returning JSON ? On Fri, May 20, 2016 at 3:27 AM, Danushka

Re: [Dev] [Jaggery] Web sockets api in jaggery

2016-05-20 Thread Danushka Fernando
This only works with plain jaggery. Cant use inside any framework. Require function even doesn't work. Thanks & Regards Danushka Fernando Senior Software Engineer WSO2 inc. http://wso2.com/ Mobile : +94716332729 On Fri, May 20, 2016 at 11:46 AM, Danushka Fernando wrote: >

Re: [Dev] [Jaggery] Web sockets api in jaggery

2016-05-20 Thread Danushka Fernando
My log file rolled and tail got expired thats why I saw no logs. Actually problem is my jaggery call to modules. I am getting exception below. var logMap = mod.getFormattedRuntimeLogs(applicationKey, selectedRevision, ""); Is there a way to ged rid of this? TID: [0] [AS] [2016-05-20

Re: [Dev] [Jaggery] Web sockets api in jaggery

2016-05-19 Thread Danushka Fernando
This is my server side looks like <% /* * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with the License. *

Re: [Dev] [Jaggery] Web sockets api in jaggery

2016-05-19 Thread Manjula Rathnayake
Hi all, Does web sockets work through nginx, haproxy like load balancers? thank you. On Fri, May 20, 2016 at 9:37 AM, Sinthuja Ragendran wrote: > Hi Dhanushka, > > You don't need to do any special changes, just include the server side > code as shown in the sample [1] in a

Re: [Dev] [Jaggery] Web sockets api in jaggery

2016-05-19 Thread Sinthuja Ragendran
Hi Dhanushka, You don't need to do any special changes, just include the server side code as shown in the sample [1] in a jag file, and mention that jag URL in the client side to connect via web socket. As per the example, the jaggery app for ws server side should be in below format. - sample

[Dev] [Jaggery] Web sockets api in jaggery

2016-05-19 Thread Danushka Fernando
Hi I tried to follow [1] to use some web sockets. But server url has to be in either ws or wss protocols. How we can expose a jaggery app in these protocols? [1] http://jaggeryjs.org/documentation.jag?api=webSocket Thanks & Regards Danushka Fernando Senior Software Engineer WSO2 inc.