added websocket post and fixed url issue