fixed function parameter assignment bug;added basic websockets support;