I want sample code for streaming api which should not used any package. the code should not have js package or any. i want to understand how streaming api is working. could anyone help on that please
The Streaming API is always based on a package, because it is a complicated subject. Bayeux Protocol, CometD, and Long Polling and the related parts else where assume you already know CometD, the underlying protocol mechanism. You would need to read an extensive amount of code and documentation to fully understand what's going on. However, I'm not dissuading you from doing so; I believe knowledge is useful, and you should seek it out. Just know that it's fairly impractical to know the details unless you plan on writing your own from scratch, and there's no reason to do so.