making web socket working with token