integration between paint action with websocket