5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-05 23:30:10 +08:00
wails/v3/plugins/experimental/server
Fabio Massaioli b8537d1c96
[v3] Restore ToggleMaximise method in Window interface (#3281)
* Add JS Window API example

* Add ToggleMaximise button to Window API example

* Restore ToggleMaximise method in Window interface

* Update docs and changelog
2024-02-29 08:42:57 +11:00
..
ipc Move server plugin to experimental dir 2023-10-11 20:25:56 +11:00
client.go Move server plugin to experimental dir 2023-10-11 20:25:56 +11:00
client.js Move server plugin to experimental dir 2023-10-11 20:25:56 +11:00
emptywriter.go Move server plugin to experimental dir 2023-10-11 20:25:56 +11:00
ipc_websocket.js Move server plugin to experimental dir 2023-10-11 20:25:56 +11:00
plugin.go Move server plugin to experimental dir 2023-10-11 20:25:56 +11:00
plugin.js Move server plugin to experimental dir 2023-10-11 20:25:56 +11:00
plugin.toml Move server plugin to experimental dir 2023-10-11 20:25:56 +11:00
README.md Move server plugin to experimental dir 2023-10-11 20:25:56 +11:00
server.go Move server plugin to experimental dir 2023-10-11 20:25:56 +11:00
window.go [v3] Restore ToggleMaximise method in Window interface (#3281) 2024-02-29 08:42:57 +11:00

Server Plugin

This plugin provides a simple server for your Wails applications to make them accessible over the local network. Bidirectional communication occurs over a websocket connection.

Installation

Add the plugin to the Plugins option in the Applications options:

package main

import (
    "github.com/wailsapp/wails/v3/pkg/application"
    "github.com/wailsapp/wails/v3/plugins/server"
)

func main() {
    app := application.New(application.Options{
        // ...
        Plugins: map[string]application.Plugin{
            "server": server.NewPlugin(&server.Config{
                Host: "0.0.0.0",
                Port: 31115,
            }),
        },
    })

Support

If you find a bug in this plugin, please raise a ticket on the Wails Issue Tracker.