Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
curran committed Mar 29, 2023
1 parent c637650 commit c219205
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion examples/counter-json1-vite/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import ReconnectingWebSocket from 'reconnecting-websocket';
import { json1 } from 'sharedb-client-browser/dist/ot-json1-umd.cjs';
import {json1} from 'sharedb-client-browser/dist/ot-json1-umd.cjs';
import sharedb from 'sharedb-client-browser/dist/sharedb-client-umd.cjs';

// Open WebSocket connection to ShareDB server
Expand Down
2 changes: 1 addition & 1 deletion examples/counter-json1-vite/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function startServer() {
var server = http.createServer(app);

// Connect any incoming WebSocket connection to ShareDB
var wss = new WebSocketServer({server: server, path:'/ws'});
var wss = new WebSocketServer({server: server, path: '/ws'});
wss.on('connection', function(ws) {
var stream = new WebSocketJSONStream(ws);
backend.listen(stream);
Expand Down
12 changes: 6 additions & 6 deletions examples/counter-json1-vite/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { defineConfig } from 'vite';
import {defineConfig} from 'vite';

export default defineConfig({
server: {
proxy: {
// Proxy websockets to ws://localhost:8080 for `npm run dev`
'/ws': {
target: 'ws://localhost:8080',
ws: true,
},
},
},
})
ws: true
}
}
}
});

0 comments on commit c219205

Please sign in to comment.