Prebinding using websocket xmpp
Is it possible to prebind by using websocket or using xep 0198?
I know in BOSH it is possible by using sid and attach it in every request
No, it is not generally possible. Websocket sessions do not get a sid/rid assigned to them, as those are only used by BOSH.
Prebinding can be done in a single HTTP request though, so I don't see a need to use websocket.