added websockets chat example;added some missing operators;reduced amount of memory allocations;removed some redundancy