public void send(JsonObject msg) {
        String encoded = GsonProvider.normal().toJson(msg);
        String signature = SignatureAlgorithm.INSTANCE.sign(this.pluginKeyPair.getPrivate(), encoded);

        JsonObject frame = new JObject()
                .add("msg", encoded)
                .add("signature", signature)
                .toJson();

        this.socket.socket().send(GsonProvider.normal().toJson(frame));
    }
Send a message to the socket.

<p>The message will be encoded as JSON and
signed using the public public key.</p>

@param msg the message
common/src/main/java/me/lucko/luckperms/common/webeditor/socket/WebEditorSocket.java