Use websocket for send if registration has occurred otherwise just POST.