mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-04 21:31:39 +08:00
![]() * Cleanup bundled runtime entry point * Fix JS representation of Screen struct * Expose IsFocused method in Window interface * Update JS window API * Fix cleanup of WML listeners * Bundle runtime as ES module * Update runtime dependencies * Update runtime types and events * Update bundled runtime * Update changelog --------- Co-authored-by: Lea Anthony <lea.anthony@gmail.com> |
||
---|---|---|
.. | ||
ipc | ||
client.go | ||
client.js | ||
emptywriter.go | ||
ipc_websocket.js | ||
plugin.go | ||
plugin.js | ||
plugin.toml | ||
README.md | ||
server.go | ||
window.go |
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.