Receives a new message and returns its contents as a newly allocated data array.
bool strict = true
|strict||If set, ensures the exact frame type (text/binary) is received and throws an execption otherwise.|
WebSocketException if the connection is closed or
strict == true and the frame received is not the right type