Change implementation of createItem, only type known
Adapt type to match with WebSocket