How to call WebSockets directly via Java?
In order to enable WebSockets, the following example is given:
application.cfc
this.name = "WebSocketDemo"; this.wschannels = [{name="stocks"},{name="chat"}];
When application variables are dumped, this.name looks like it gets translated into application.applicationname. However, wschannels is nowhere to be found. How would one be able to enable websockets via a call in application.cfm or any cfm page?
I tried this but neither worked:
<cfset application.wschannels = [{name="stocks"},{name="chat"}]>
<cfset application.this.wschannels = [{name="stocks"},{name="chat"}]>
