SecureBlackbox 2020 Python Edition

Questions / Feedback?

on_data Event

Supplies a data chunk received within a POST or PUT upload.

Syntax

class WebSocketServerDataEventParams(object):
  @property
  def connection_id() -> int: ...
  @property
  def buffer() -> bytes: ...

# In class WebSocketServer:
@property
def on_data() -> Callable[[WebSocketServerDataEventParams], None]: ...
@on_data.setter
def on_data(event_hook: Callable[[WebSocketServerDataEventParams], None]) -> None: ...

Remarks

This event is fired to supply another piece of data received within a POST or PUT upload operation. This event may fire multiple times during a single request upload to pass the uploaded data to the application chunk-by-chunk.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 Python Edition - Version 20.0 [Build 8154]