5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-08 09:00:47 +08:00
wails/v3/plugins/server
2023-09-28 12:14:54 -05:00
..
ipc [v3 plugin/server] initial implementation 2023-09-28 12:14:54 -05:00
client.go [v3 plugin/server] initial implementation 2023-09-28 12:14:54 -05:00
client.js [v3 plugin/server] initial implementation 2023-09-28 12:14:54 -05:00
emptywriter.go [v3 plugin/server] initial implementation 2023-09-28 12:14:54 -05:00
ipc_websocket.js [v3 plugin/server] initial implementation 2023-09-28 12:14:54 -05:00
plugin.go [v3 plugin/server] initial implementation 2023-09-28 12:14:54 -05:00
plugin.js [v3 plugin/server] initial implementation 2023-09-28 12:14:54 -05:00
plugin.toml [v3 plugin/server] initial implementation 2023-09-28 12:14:54 -05:00
README.md [v3 plugin/server] initial implementation 2023-09-28 12:14:54 -05:00
server.go [v3 plugin/server] initial implementation 2023-09-28 12:14:54 -05:00
window.go [v3 plugin/server] initial implementation 2023-09-28 12:14:54 -05: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.