commit pre websockets implementation