Class: NetworkDebugger

Grape2D.utils. NetworkDebugger

new NetworkDebugger()

Debugs the network data income and outcome, by rendering that information to the renderer.
Source:

Members

<static> inPos :Grape2D.Vector

Position of the last income data size.
Type:
Source:

<static> inRatePos :Grape2D.Vector

Position of the income rate of data.
Type:
Source:

<static> outPos :Grape2D.Vector

Position of the last outcome data size.
Type:
Source:

<static> outRatePos :Grape2D.Vector

Position of the outcome rate of data.
Type:
Source:

<static> pingPos :Grape2D.Vector

Position of the ping information.
Type:
Source:

<static> textFont :string

Debug text font.
Type:
  • string
Source:

Methods

<static> render(webSocket, renderer, camera)

Renders the information to a renderer.
Parameters:
Name Type Description
webSocket Grape2D.WebSocket Web socket to debug.
renderer Grape2D.Renderer Renderer to render the debug information.
camera Grape2D.Camera Camera to transform the coordinates.
Source: