sending binary data to websocket and call page event back