function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Caleb KuesterCaleb Kuester 

LockerService and Streaming API (Linter Complains)

HI!

So I'm curious if Streaming API is not supposed to be LockerService-friendly. 

It complains at: "var cometd = new window.org.cometd.CometD();"

Specifically, it doesn't like "window.org."

Is there any way around this?
 
Caleb KuesterCaleb Kuester
As it turns out, the problem was caused because I was using the Chrome addon version of the Linter. The CLI version does not complain about the StreamingAPI, which is strange, because the StreamingAPI looks like the shining definition of an app that LockerService should shut down. I may be wrong and it may be more secure than I realize.