Skip to content

Commit 8b73469

Browse files
committed
fix(webui): fix mqtt port issue
1 parent 8af5eec commit 8b73469

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/actions/publish-website/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ runs:
3939
run: docker load --input /tmp/mokapi.tar
4040
shell: bash
4141
- name: Run mokapi image
42-
run: docker run --name mokapi --rm -d -p 80:80 -p 8080:8080 -p 9092:9092 -p 8389:8389 -p 8025:8025 --mount type=bind,source=$(pwd)/webui/scripts/dashboard-demo/demo-configs,target=/data --env MOKAPI_Providers_File_Directory=/data ${{ inputs.image-name }}
42+
run: docker run --name mokapi --rm -d -p 80:80 -p 1883:1883 -p 8080:8080 -p 9092:9092 -p 8389:8389 -p 8025:8025 --mount type=bind,source=$(pwd)/webui/scripts/dashboard-demo/demo-configs,target=/data --env MOKAPI_Providers_File_Directory=/data ${{ inputs.image-name }}
4343
shell: bash
4444
- name: Build Demo Dashboard
4545
working-directory: ./webui/scripts/dashboard-demo

webui/e2e/tests/dashboard-demo/mqtt.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ test('Visit MQTT overview', async ({ page, baseURL }) => {
7878
const info = page.getByRole('region', { name: 'Info' })
7979
await expect(info.getByLabel('Client Id')).toContainText('mqttjs');
8080
await expect(info.getByLabel('Address')).not.toBeEmpty();
81-
await expect(info.getByLabel('Broker')).toHaveText('localhost:9883');
81+
await expect(info.getByLabel('Broker')).toHaveText('localhost:1883');
8282
await expect(info.getByLabel('Protocol Version')).toHaveText('4 (v3.1.1)');
8383
await expect(info.getByLabel('Type of API')).toHaveText('MQTT');
8484

webui/scripts/dashboard-demo/demo-configs/mqtt.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ info:
55
description: Example specification for controlling sensors via MQTT.
66
servers:
77
production:
8-
host: localhost:9883
8+
host: localhost:1883
99
protocol: mqtt
1010
description: Public HiveMQ broker for testing purposes.
1111
channels:

webui/scripts/dashboard-demo/drive-mqtt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import mqtt from 'mqtt';
22

33
export async function driveMqtt(): Promise<void> {
4-
const client = mqtt.connect('mqtt://localhost:9883')
4+
const client = mqtt.connect('mqtt://localhost:1883')
55

66
await new Promise<void>((resolve, reject) => {
77
client.on('connect', () => {

0 commit comments

Comments
 (0)