Add ws_event_new to event.c