<api xmlns="http://ws.apache.org/ns/synapse"  name="$!apiName" context="$!apiContext">
    <resource url-mapping="$defaultVersionUrlMapping" faultSequence="fault">
        <inSequence>
            <log level="custom">
                <property name="STATUS" value="Faulty invoking through default API. Dropping message."/>
            </log>
            <drop/>
        </inSequence>
    </resource>
</api>

<api xmlns="http://ws.apache.org/ns/synapse"  name="$!apiName" context="$!apiContext" binds-to="WebSocketInboundEndpoint">
    <resource url-mapping="$defaultVersionUrlMapping" faultSequence="fault">
        <inSequence>
            <log level="custom">
                <property name="STATUS" value="Faulty invoking through default API. Dropping message."/>
            </log>
            <drop/>
        </inSequence>
    </resource>
</api>

Add binds-to for WS API default template
Add binds-to for WS API default template
