Hej, I am faceing the same issue of you. The only solution I found until this moment is this code [1] but it seems not working properly on matlab R2018a [2].
Did you find anything else, meanwhile?
[1] https://github.com/jebej/MatlabWebSocket/ [2] https://github.com/jebej/MatlabWebSocket/issues/9
