from where to where do you want to use websockets? whatever you can do in js would work. k.js is the interface: env:{read,write,mmap,munmap:O,exit:O,hop:O,hcl:O,now:O,u0c:O,u1c:O,cmd:O,v0c:O,v1c:O,frk:O}
these are functions implemented in js which are called from k(wasm). you can provide implementations for hop/hcl e.g. to do ws connections.