evennia.contrib.base_systems.godotwebsocket.webclient

Godot Websocket - ChrisLR 2022

This file contains the code necessary to dedicate a port to communicate with Godot via Websockets. It uses the plugin system and should be plugged via settings as detailed in the readme.

class evennia.contrib.base_systems.godotwebsocket.webclient.GodotWebSocketClient(*args, **kwargs)[source]

Bases: evennia.server.portal.webclient.WebSocketClient

Implements the server-side of the Websocket connection specific to Godot. It inherits from the basic Websocket implementation and changes only what is necessary.

__init__(*args, **kwargs)[source]

Initialize self. See help(type(self)) for accurate signature.

send_text(*args, **kwargs)[source]

Send text data. This will pre-process the text for color-replacement, conversion to bbcode etc.

Parameters

text (str) – Text to send.

Keyword Arguments

options (dict) – Options-dict with the following keys understood: - nocolor (bool): Clean out all color. - send_prompt (bool): Send a prompt with parsed bbcode

evennia.contrib.base_systems.godotwebsocket.webclient.start_plugin_services(portal)[source]