Hi Sinthuja,

Thank you a lot for the prompt fix! I will test it out and update.

Regards,
Dilini

On Tue, Aug 30, 2016 at 6:09 PM, Sinthuja Ragendran <[email protected]>
wrote:

> Hi Dillini,
>
> I have added the close method to websocket host object in the
> v0.12.8-SNAPSHOT, please do a build and test it out.
>
> Thanks,
> Sinthuja.
>
> On Mon, Aug 29, 2016 at 2:02 PM, Dilini Muthumala <[email protected]> wrote:
>
>> Hi Manu,
>>
>> If the websocket client has not being authenticated, the websocket server
>> needs to close the connection. Something like below:
>>
>>
>> <%
>> var user = session.get('user');
>>
>> webSocket.onopen = function () {
>> var user = session.get('user');
>>
>> if (user == null) {
>> this.close();
>> }
>> };
>>
>> %>
>>
>> thanks,
>> Dilini
>>
>> On Mon, Aug 29, 2016 at 2:01 PM, Udara Rathnayake <[email protected]>
>> wrote:
>>
>>> what we can do right now is ask client to close the connection from the
>>> server, which is not feasible for CEP guys as I heard.
>>>
>>> @dilini can explain the full use case.
>>>
>>> On Mon, Aug 29, 2016 at 1:49 PM, Nipuna Chandradasa <[email protected]>
>>> wrote:
>>>
>>>> Hi All,
>>>>
>>>> There is a requirement to close the WebSocket connection from server
>>>> side. Currently there is no close() functionality available for WebSocket
>>>> from the jaggery side.
>>>>
>>>> 1. Is there a reason to why didn't we implement this in the first place?
>>>> 2. Is there any other way of terminating a web socket connection?
>>>>
>>>> Thank you,
>>>>
>>>> --
>>>> Nipuna Marcus
>>>> *Software Engineer*
>>>> WSO2 Inc.
>>>> http://wso2.com/ - "lean . enterprise . middleware"
>>>> Mobile : +94 (0) 713 667906
>>>> [email protected]
>>>>
>>>
>>>
>>>
>>> --
>>> Regards,
>>> UdaraR
>>>
>>
>>
>>
>> --
>> *Dilini Muthumala*
>> Senior Software Engineer,
>> WSO2 Inc.
>>
>> *E-mail :* [email protected]
>> *Mobile: *+94 713-400-029
>>
>
>
>
> --
> *Sinthuja Rajendran*
> Technical Lead
> WSO2, Inc.:http://wso2.com
>
> Blog: http://sinthu-rajan.blogspot.com/
> Mobile: +94774273955
>
>
>


-- 
*Dilini Muthumala*
Senior Software Engineer,
WSO2 Inc.

*E-mail :* [email protected]
*Mobile: *+94 713-400-029
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to